Modules#
Socket API type definitions#
Enumerations#
enum
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 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. |
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) |
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. |