Structures of the BSD Socket.
More...
Structures of the BSD Socket.
Generic Socket Address structure.
Parameter for:
| Data Fields |
|
int8_t |
sa_data[14] |
Direct address (up to 14 bytes) |
|
uint16_t |
sa_family |
Address family. |
Generic IPv4 Address structure.
Parameter for:
| Data Fields |
|
union IN_ADDR |
__unnamed__ |
|
| union IN_ADDR.__unnamed__ |
| struct IN_ADDR.__unnamed__.__unnamed__ |
| Data Fields |
|
uint8_t |
s_b1 |
|
|
uint8_t |
s_b2 |
|
|
uint8_t |
s_b3 |
|
|
uint8_t |
s_b4 |
IP address, byte access. |
Generic IPv6 Address structure.
Parameter for:
| union IN6_ADDR.__unnamed__ |
| Data Fields |
|
uint8_t |
s6_b[16] |
IP6 address, byte access. |
|
uint16_t |
s6_w[8] |
IP6 address, short int access. |
IPv4 Socket Address structure.
Used in:
| Data Fields |
|
IN_ADDR |
sin_addr |
IP address. |
|
int16_t |
sin_family |
Socket domain. |
|
uint16_t |
sin_port |
Port. |
|
int8_t |
sin_zero[8] |
reserved |
IPv6 Socket Address structure.
Used in:
| Data Fields |
|
IN6_ADDR |
sin6_addr |
IP6 address. |
|
int16_t |
sin6_family |
Socket domain. |
|
uint32_t |
sin6_flowinfo |
IP6 flow information. |
|
uint16_t |
sin6_port |
Port. |
BSD Host Entry structure.
Returned by:
| Data Fields |
|
char ** |
h_addr_list |
Pointer to an array of IPv4 addresses. |
|
int16_t |
h_addrtype |
Address Type: AF_INET, AF_NETBIOS. |
|
char ** |
h_aliases |
Pointer to an array of alias names. |
|
int16_t |
h_length |
Length of address in bytes. |
|
char * |
h_name |
Official name of host. |
BSD timeval structure.
Used in:
| Data Fields |
|
uint32_t |
tv_sec |
Time interval: seconds. |
|
uint32_t |
tv_usec |
Time interval: microseconds. |
BSD fd_set structure.
Used in:
| Data Fields |
|
uint32_t |
fd_bits[(FD_SETSIZE+31)>>5] |
Set of sockets bit-mask. |
BSD scatter/gather array of items.
Used in:
| Data Fields |
|
void * |
iov_base |
Starting address. |
|
uint32_t |
iov_len |
Number of bytes to transfer. |
BSD message header structure.
Used in:
| Data Fields |
|
void * |
msg_control |
Ancillary data. |
|
uint32_t |
msg_controllen |
Ancillary data buffer length. |
|
int32_t |
msg_flags |
Flags on received message. |
|
IOVEC * |
msg_iov |
An array of iovec buffers for the message. |
|
int32_t |
msg_iovlen |
Number of elements in msg_iov. |
|
void * |
msg_name |
Optional pointer to source address. |
|
uint32_t |
msg_namelen |
Size of address buffer. |
BSD cmsg header structure.
Used in:
| Data Fields |
|
uint32_t |
cmsg_len |
Data byte count, including the cmsghdr. |
|
int32_t |
cmsg_level |
Originating protocol. |
|
int32_t |
cmsg_type |
Protocol-specific type. |