Modules#

sockaddr

in_addr

sockaddr_in

in6_addr

sockaddr_in6

sockaddr_storage

Socket API type definitions#

Enumerations#

enum
AF_WISUN = 1
AF_INET
AF_INET6
}

Socket domain types enum.

enum
SOCK_STREAM
SOCK_DGRAM
SOCK_RAW
}

Socket type definitions enum.

enum
IPPROTO_AUTO = 0
IPPROTO_IP = 0
IPPROTO_ICMP = 1
IPPROTO_TCP = 2
IPPROTO_UDP = 3
}

Socket protocol types enum.

Typedefs#

typedef uint32_t

Socket address length type definition.

typedef struct sockaddr

IPv4 Address structure storage with padding.

typedef struct in_addr

IPv4 Internet address.

typedef struct sockaddr_in

Internet address structure for functions.

typedef struct in6_addr

IPv6 Internet address.

typedef struct sockaddr_in6

IPv6 structure.

typedef struct sockaddr_storage

IPv6 Internet address storage with padding.

typedef struct sockaddr_in6

Wi-SUN address structure type definition.

Enumeration Documentation#

sock_domain_t#

sock_domain_t

Socket domain types enum.

Enumerator
AF_WISUN

Wi-SUN FAN.

AF_INET

External IPv4.

AF_INET6

External IPv6.


Definition at line 77 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

sock_type_t#

sock_type_t

Socket type definitions enum.

Enumerator
SOCK_STREAM

Stream socket (TCP)

SOCK_DGRAM

Datagram socket (UDP)

SOCK_RAW

RAW sockets without transfer protocol (ICMP)


Definition at line 87 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

proto_type_t#

proto_type_t

Socket protocol types enum.

Enumerator
IPPROTO_AUTO

Default IP protocol.

IPPROTO_IP

Default IP protocol.

IPPROTO_ICMP

ICMP protocol.

IPPROTO_TCP

TCP protocol.

IPPROTO_UDP

UDP protocol.


Definition at line 97 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

Typedef Documentation#

socklen_t#

typedef uint32_t socklen_t

Socket address length type definition.


Definition at line 74 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

sockaddr_t#

typedef struct sockaddr sockaddr_t

IPv4 Address structure storage with padding.


Definition at line 116 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

in_addr_t#

typedef struct in_addr in_addr_t

IPv4 Internet address.


Definition at line 122 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

sockaddr_in_t#

typedef struct sockaddr_in sockaddr_in_t

Internet address structure for functions.


Definition at line 134 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

in6_addr_t#

typedef struct in6_addr in6_addr_t

IPv6 Internet address.


Definition at line 140 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

sockaddr_in6_t#

typedef struct sockaddr_in6 sockaddr_in6_t

IPv6 structure.


Definition at line 154 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

sockaddr_storage_t#

typedef struct sockaddr_storage sockaddr_storage_t

IPv6 Internet address storage with padding.


Definition at line 162 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h

wisun_addr_t#

typedef struct sockaddr_in6 wisun_addr_t

Wi-SUN address structure type definition.


Definition at line 165 of file /mnt/raid/workspaces/ws.vHmYkJajL/overlay/gsdk/app/wisun/component/socket/socket.h