Back to Sealevel      

ceth_ip_addr Union Reference
[SeaMAX Ethernet Discovery/Configuration API]

An IP, NetMask, or GateWay Address. This is a union which will allow you to access the data in one of three data type methods -- long (all 4 bytes at once), short (2 bytes at a time), or char (1 byte at a time). If you access the data 1 byte at a time, through the c array, each octet is the same as the human readable ip address. ie the first octet (0) in the IP 192.168.0.1 can be accessed through ceth_ip_addr.c[2]. More...

List of all members.

Public Attributes

unsigned long i
 Access all 4 bytes at once.
unsigned short s [2]
 Access to two bytes at a time.
unsigned char c [4]
 Access to each individual byte.

Detailed Description

An IP, NetMask, or GateWay Address. This is a union which will allow you to access the data in one of three data type methods -- long (all 4 bytes at once), short (2 bytes at a time), or char (1 byte at a time). If you access the data 1 byte at a time, through the c array, each octet is the same as the human readable ip address. ie the first octet (0) in the IP 192.168.0.1 can be accessed through ceth_ip_addr.c[2].

 
 
Generated on 3 Jun 2011.