Network Component  Version 7.11.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Structures

Structures of the BSD Socket. More...

Structures

struct  SOCKADDR
 Generic Socket Address structure. More...
 
struct  IN_ADDR
 Generic IPv4 Address structure. More...
 
union  IN_ADDR.__unnamed__
 
struct  IN_ADDR.__unnamed__.__unnamed__
 
struct  IN6_ADDR
 Generic IPv6 Address structure. More...
 
union  IN6_ADDR.__unnamed__
 
struct  SOCKADDR_IN
 IPv4 Socket Address structure. More...
 
struct  SOCKADDR_IN6
 IPv6 Socket Address structure. More...
 
struct  HOSTENT
 BSD Host Entry structure. More...
 
struct  timeval
 BSD timeval structure. More...
 
struct  fd_set
 BSD fd_set structure. More...
 
struct  IOVEC
 BSD scatter/gather array of items. More...
 
struct  MSGHDR
 BSD message header structure. More...
 
struct  CMSGHDR
 BSD cmsg header structure. More...
 

Description

Structures of the BSD Socket.


Data Structure Documentation

struct SOCKADDR

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

Generic IPv4 Address structure.

Parameter for:

Data Fields
union IN_ADDR __unnamed__
union IN_ADDR.__unnamed__
Data Fields
__unnamed__ __unnamed__
__unnamed__ __unnamed__
uint32_t s_addr IP address in network byte order.
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.
struct IN6_ADDR

Generic IPv6 Address structure.

Parameter for:

Data Fields
union IN6_ADDR __unnamed__
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.
struct SOCKADDR_IN

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
struct SOCKADDR_IN6

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

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

BSD timeval structure.

Used in:

Data Fields
uint32_t tv_sec Time interval: seconds.
uint32_t tv_usec Time interval: microseconds.
struct fd_set

BSD fd_set structure.

Used in:

Data Fields
uint32_t fd_bits[(FD_SETSIZE+31)>>5] Set of sockets bit-mask.
struct IOVEC

BSD scatter/gather array of items.

Used in:

Data Fields
void * iov_base Starting address.
uint32_t iov_len Number of bytes to transfer.
struct MSGHDR

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

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.