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...

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 Tue Sep 19 2017.