Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
socket.h
Go to the documentation of this file.
1
8/*
9 * Copyright (c) 2017-2018 Linaro Limited
10 * Copyright (c) 2021 Nordic Semiconductor
11 *
12 * SPDX-License-Identifier: Apache-2.0
13 */
14
15#ifndef ZEPHYR_INCLUDE_NET_SOCKET_H_
16#define ZEPHYR_INCLUDE_NET_SOCKET_H_
17
27#include <zephyr/kernel.h>
28#include <sys/types.h>
29#include <zephyr/types.h>
30#include <zephyr/device.h>
31#include <zephyr/net/net_ip.h>
35#include <zephyr/sys/fdtable.h>
37#include <stdlib.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
47/* ZSOCK_POLL* values are compatible with Linux */
49#define ZSOCK_POLLIN 1
51#define ZSOCK_POLLPRI 2
53#define ZSOCK_POLLOUT 4
55#define ZSOCK_POLLERR 8
57#define ZSOCK_POLLHUP 0x10
59#define ZSOCK_POLLNVAL 0x20
67#define ZSOCK_MSG_PEEK 0x02
70#define ZSOCK_MSG_CTRUNC 0x08
74#define ZSOCK_MSG_TRUNC 0x20
76#define ZSOCK_MSG_DONTWAIT 0x40
78#define ZSOCK_MSG_WAITALL 0x100
85/* Well-known values, e.g. from Linux man 2 shutdown:
86 * "The constants SHUT_RD, SHUT_WR, SHUT_RDWR have the value 0, 1, 2,
87 * respectively". Some software uses numeric values.
88 */
90#define ZSOCK_SHUT_RD 0
92#define ZSOCK_SHUT_WR 1
94#define ZSOCK_SHUT_RDWR 2
111#define SOL_TLS 282
112
117#define TLS_SEC_TAG_LIST 1
122#define TLS_HOSTNAME 2
128#define TLS_CIPHERSUITE_LIST 3
133#define TLS_CIPHERSUITE_USED 4
144#define TLS_PEER_VERIFY 5
153#define TLS_DTLS_ROLE 6
159#define TLS_ALPN_LIST 7
164#define TLS_DTLS_HANDSHAKE_TIMEOUT_MIN 8
165
170#define TLS_DTLS_HANDSHAKE_TIMEOUT_MAX 9
171
176#define TLS_CERT_NOCOPY 10
187#define TLS_NATIVE 11
192#define TLS_SESSION_CACHE 12
196#define TLS_SESSION_CACHE_PURGE 13
208#define TLS_DTLS_CID 14
218#define TLS_DTLS_CID_STATUS 15
223#define TLS_DTLS_CID_VALUE 16
230#define TLS_DTLS_PEER_CID_VALUE 17
238#define TLS_DTLS_HANDSHAKE_ON_CONNECT 18
239
240/* Valid values for @ref TLS_PEER_VERIFY option */
241#define TLS_PEER_VERIFY_NONE 0
242#define TLS_PEER_VERIFY_OPTIONAL 1
243#define TLS_PEER_VERIFY_REQUIRED 2
245/* Valid values for @ref TLS_DTLS_ROLE option */
246#define TLS_DTLS_ROLE_CLIENT 0
247#define TLS_DTLS_ROLE_SERVER 1
249/* Valid values for @ref TLS_CERT_NOCOPY option */
250#define TLS_CERT_NOCOPY_NONE 0
251#define TLS_CERT_NOCOPY_OPTIONAL 1
253/* Valid values for @ref TLS_SESSION_CACHE option */
254#define TLS_SESSION_CACHE_DISABLED 0
255#define TLS_SESSION_CACHE_ENABLED 1
257/* Valid values for @ref TLS_DTLS_CID (Connection ID) option */
258#define TLS_DTLS_CID_DISABLED 0
259#define TLS_DTLS_CID_SUPPORTED 1
260#define TLS_DTLS_CID_ENABLED 2
262/* Valid values for @ref TLS_DTLS_CID_STATUS option */
263#define TLS_DTLS_CID_STATUS_DISABLED 0
264#define TLS_DTLS_CID_STATUS_DOWNLINK 1
265#define TLS_DTLS_CID_STATUS_UPLINK 2
266#define TLS_DTLS_CID_STATUS_BIDIRECTIONAL 3
267 /* for @name */
268 /* for @defgroup */
269
288 struct sockaddr _ai_addr;
289 char _ai_canonname[DNS_MAX_NAME_SIZE + 1];
291};
292
329__syscall void *zsock_get_context_object(int sock);
330
346__syscall int zsock_socket(int family, int type, int proto);
347
358__syscall int zsock_socketpair(int family, int type, int proto, int *sv);
359
369__syscall int zsock_close(int sock);
370
382__syscall int zsock_shutdown(int sock, int how);
383
394__syscall int zsock_bind(int sock, const struct sockaddr *addr,
395 socklen_t addrlen);
396
407__syscall int zsock_connect(int sock, const struct sockaddr *addr,
408 socklen_t addrlen);
409
420__syscall int zsock_listen(int sock, int backlog);
421
432__syscall int zsock_accept(int sock, struct sockaddr *addr, socklen_t *addrlen);
433
444__syscall ssize_t zsock_sendto(int sock, const void *buf, size_t len,
445 int flags, const struct sockaddr *dest_addr,
446 socklen_t addrlen);
447
458static inline ssize_t zsock_send(int sock, const void *buf, size_t len,
459 int flags)
460{
461 return zsock_sendto(sock, buf, len, flags, NULL, 0);
462}
463
474__syscall ssize_t zsock_sendmsg(int sock, const struct msghdr *msg,
475 int flags);
476
487__syscall ssize_t zsock_recvfrom(int sock, void *buf, size_t max_len,
488 int flags, struct sockaddr *src_addr,
489 socklen_t *addrlen);
490
501__syscall ssize_t zsock_recvmsg(int sock, struct msghdr *msg, int flags);
502
513static inline ssize_t zsock_recv(int sock, void *buf, size_t max_len,
514 int flags)
515{
516 return zsock_recvfrom(sock, buf, max_len, flags, NULL, NULL);
517}
518
529__syscall int zsock_fcntl_impl(int sock, int cmd, int flags);
530
533/*
534 * Need this wrapper because newer GCC versions got too smart and "typecheck"
535 * even macros.
536 */
537static inline int zsock_fcntl_wrapper(int sock, int cmd, ...)
538{
539 va_list args;
540 int flags;
541
542 va_start(args, cmd);
543 flags = va_arg(args, int);
544 va_end(args);
545 return zsock_fcntl_impl(sock, cmd, flags);
546}
547
548#define zsock_fcntl zsock_fcntl_wrapper
549
567__syscall int zsock_ioctl_impl(int sock, unsigned long request, va_list ap);
568
571static inline int zsock_ioctl_wrapper(int sock, unsigned long request, ...)
572{
573 int ret;
574 va_list args;
575
576 va_start(args, request);
577 ret = zsock_ioctl_impl(sock, request, args);
578 va_end(args);
579
580 return ret;
581}
582
583#define zsock_ioctl zsock_ioctl_wrapper
584
598static inline int zsock_poll(struct zsock_pollfd *fds, int nfds, int timeout)
599{
600 return zvfs_poll(fds, nfds, timeout);
601}
602
616__syscall int zsock_getsockopt(int sock, int level, int optname,
617 void *optval, socklen_t *optlen);
618
632__syscall int zsock_setsockopt(int sock, int level, int optname,
633 const void *optval, socklen_t optlen);
634
645__syscall int zsock_getpeername(int sock, struct sockaddr *addr,
646 socklen_t *addrlen);
647
658__syscall int zsock_getsockname(int sock, struct sockaddr *addr,
659 socklen_t *addrlen);
660
671__syscall int zsock_gethostname(char *buf, size_t len);
672
683static inline char *zsock_inet_ntop(sa_family_t family, const void *src,
684 char *dst, size_t size)
685{
686 return net_addr_ntop(family, src, dst, size);
687}
688
699__syscall int zsock_inet_pton(sa_family_t family, const char *src, void *dst);
700
702__syscall int z_zsock_getaddrinfo_internal(const char *host,
703 const char *service,
704 const struct zsock_addrinfo *hints,
705 struct zsock_addrinfo *res);
708/* Flags for getaddrinfo() hints. */
709
715#define AI_PASSIVE 0x1
717#define AI_CANONNAME 0x2
719#define AI_NUMERICHOST 0x4
721#define AI_V4MAPPED 0x8
723#define AI_ALL 0x10
725#define AI_ADDRCONFIG 0x20
727#define AI_NUMERICSERV 0x400
729#define AI_EXTFLAGS 0x800
742int zsock_getaddrinfo(const char *host, const char *service,
743 const struct zsock_addrinfo *hints,
744 struct zsock_addrinfo **res);
745
757
768const char *zsock_gai_strerror(int errcode);
769
775#define NI_NUMERICHOST 1
777#define NI_NUMERICSERV 2
779#define NI_NOFQDN 4
781#define NI_NAMEREQD 8
783#define NI_DGRAM 16
784
785/* POSIX extensions */
786
788#ifndef NI_MAXHOST
789#define NI_MAXHOST 64
790#endif
803int zsock_getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
804 char *host, socklen_t hostlen,
805 char *serv, socklen_t servlen, int flags);
806
812#if defined(CONFIG_NET_INTERFACE_NAME)
813#define IFNAMSIZ CONFIG_NET_INTERFACE_NAME_LEN
814#else
815#define IFNAMSIZ Z_DEVICE_MAX_NAME_LEN
816#endif
817
819struct ifreq {
821};
829#define SOL_SOCKET 1
830
831/* Socket options for SOL_SOCKET level */
832
834#define SO_DEBUG 1
836#define SO_REUSEADDR 2
838#define SO_TYPE 3
840#define SO_ERROR 4
842#define SO_DONTROUTE 5
844#define SO_BROADCAST 6
845
847#define SO_SNDBUF 7
849#define SO_RCVBUF 8
850
852#define SO_KEEPALIVE 9
854#define SO_OOBINLINE 10
856#define SO_PRIORITY 12
858#define SO_LINGER 13
860#define SO_REUSEPORT 15
861
863#define SO_RCVLOWAT 18
865#define SO_SNDLOWAT 19
866
871#define SO_RCVTIMEO 20
873#define SO_SNDTIMEO 21
874
876#define SO_BINDTODEVICE 25
877
879#define SO_ACCEPTCONN 30
880
882#define SO_TIMESTAMPING 37
883
885#define SO_PROTOCOL 38
886
888#define SO_DOMAIN 39
889
891#define SO_SOCKS5 60
892
894#define SO_TXTIME 61
896#define SCM_TXTIME SO_TXTIME
897
901#define SOF_TIMESTAMPING_RX_HARDWARE BIT(0)
906#define SOF_TIMESTAMPING_TX_HARDWARE BIT(1)
907
916/* Socket options for IPPROTO_TCP level */
918#define TCP_NODELAY 1
920#define TCP_KEEPIDLE 2
922#define TCP_KEEPINTVL 3
924#define TCP_KEEPCNT 4
925
932/* Socket options for IPPROTO_IP level */
934#define IP_TOS 1
935
937#define IP_TTL 2
938
943#define IP_PKTINFO 8
944
952 unsigned int ipi_ifindex;
955};
956
961#define IP_MTU 14
962
964#define IP_MULTICAST_IF 32
966#define IP_MULTICAST_TTL 33
968#define IP_ADD_MEMBERSHIP 35
970#define IP_DROP_MEMBERSHIP 36
971
980
988
990#define IP_LOCAL_PORT_RANGE 51
991
998/* Socket options for IPPROTO_IPV6 level */
1000#define IPV6_UNICAST_HOPS 16
1001
1003#define IPV6_MULTICAST_IF 17
1004
1006#define IPV6_MULTICAST_HOPS 18
1007
1009#define IPV6_ADD_MEMBERSHIP 20
1010
1012#define IPV6_DROP_MEMBERSHIP 21
1013
1015#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP
1016
1018#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP
1019
1030
1036#define IPV6_MTU 24
1037
1039#define IPV6_V6ONLY 26
1040
1045#define IPV6_RECVPKTINFO 49
1046
1048#define IPV6_ADDR_PREFERENCES 72
1049
1051#define IPV6_PREFER_SRC_TMP 0x0001
1053#define IPV6_PREFER_SRC_PUBLIC 0x0002
1058#define IPV6_PREFER_SRC_PUBTMP_DEFAULT 0x0100
1060#define IPV6_PREFER_SRC_COA 0x0004
1062#define IPV6_PREFER_SRC_HOME 0x0400
1064#define IPV6_PREFER_SRC_CGA 0x0008
1066#define IPV6_PREFER_SRC_NONCGA 0x0800
1067
1076 unsigned int ipi6_ifindex;
1077};
1078
1080#define IPV6_TCLASS 67
1088#define SOMAXCONN 128
1096#define IN6_IS_ADDR_UNSPECIFIED(addr) \
1097 net_ipv6_addr_cmp(net_ipv6_unspecified_address(), addr)
1098
1100#define IN6_IS_ADDR_LOOPBACK(addr) net_ipv6_is_addr_loopback(addr)
1101
1103#define IN6_IS_ADDR_MULTICAST(addr) net_ipv6_is_addr_mcast(addr)
1104
1106#define IN6_IS_ADDR_LINKLOCAL(addr) net_ipv6_is_ll_addr(addr)
1107
1109#define IN6_IS_ADDR_SITELOCAL(addr) net_ipv6_is_sl_addr(addr)
1110
1112#define IN6_IS_ADDR_V4MAPPED(addr) net_ipv6_addr_is_v4_mapped(addr)
1113
1115#define IN6_IS_ADDR_MC_GLOBAL(addr) net_ipv6_is_addr_mcast_global(addr)
1116
1118#define IN6_IS_ADDR_MC_NODELOCAL(addr) net_ipv6_is_addr_mcast_iface(addr)
1119
1121#define IN6_IS_ADDR_MC_LINKLOCAL(addr) net_ipv6_is_addr_mcast_link(addr)
1122
1124#define IN6_IS_ADDR_MC_SITELOCAL(addr) net_ipv6_is_addr_mcast_site(addr)
1125
1127#define IN6_IS_ADDR_MC_ORGLOCAL(addr) net_ipv6_is_addr_mcast_org(addr)
1128
1135struct net_socket_register {
1136 int family;
1137 bool is_offloaded;
1138 bool (*is_supported)(int family, int type, int proto);
1139 int (*handler)(int family, int type, int proto);
1140#if defined(CONFIG_NET_SOCKETS_OBJ_CORE)
1141 /* Store also the name of the socket type in order to be able to
1142 * print it later.
1143 */
1144 const char * const name;
1145#endif
1146};
1147
1148#define NET_SOCKET_DEFAULT_PRIO CONFIG_NET_SOCKETS_PRIORITY_DEFAULT
1149
1150#define NET_SOCKET_GET_NAME(socket_name, prio) \
1151 __net_socket_register_##prio##_##socket_name
1152
1153#if defined(CONFIG_NET_SOCKETS_OBJ_CORE)
1154#define K_OBJ_TYPE_SOCK K_OBJ_TYPE_ID_GEN("SOCK")
1155
1156#define NET_SOCKET_REGISTER_NAME(_name) \
1157 .name = STRINGIFY(_name),
1158#else
1159#define NET_SOCKET_REGISTER_NAME(_name)
1160#endif
1161
1162#define _NET_SOCKET_REGISTER(socket_name, prio, _family, _is_supported, _handler, _is_offloaded) \
1163 static const STRUCT_SECTION_ITERABLE(net_socket_register, \
1164 NET_SOCKET_GET_NAME(socket_name, prio)) = { \
1165 .family = _family, \
1166 .is_offloaded = _is_offloaded, \
1167 .is_supported = _is_supported, \
1168 .handler = _handler, \
1169 NET_SOCKET_REGISTER_NAME(socket_name) \
1170 }
1171
1172#define NET_SOCKET_REGISTER(socket_name, prio, _family, _is_supported, _handler) \
1173 _NET_SOCKET_REGISTER(socket_name, prio, _family, _is_supported, _handler, false)
1174
1175#define NET_SOCKET_OFFLOAD_REGISTER(socket_name, prio, _family, _is_supported, _handler) \
1176 _NET_SOCKET_REGISTER(socket_name, prio, _family, _is_supported, _handler, true)
1177
1180#ifdef __cplusplus
1181}
1182#endif
1183
1184#include <zephyr/syscalls/socket.h>
1185
1190/* Avoid circular loops with POSIX socket headers.
1191 * We have these includes here so that we do not need
1192 * to change the applications that were only including
1193 * zephyr/net/socket.h header file.
1194 *
1195 * Additionally, if non-zephyr-prefixed headers are used here,
1196 * native_sim pulls in those from the host rather than Zephyr's.
1197 */
1198#if defined(CONFIG_POSIX_API)
1199#if !defined(ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_)
1200#include <zephyr/posix/arpa/inet.h>
1201#endif
1202#if !defined(ZEPHYR_INCLUDE_POSIX_NETDB_H_)
1203#include <zephyr/posix/netdb.h>
1204#endif
1205#if !defined(ZEPHYR_INCLUDE_POSIX_UNISTD_H_)
1206#include <zephyr/posix/unistd.h>
1207#endif
1208#if !defined(ZEPHYR_INCLUDE_POSIX_POLL_H_)
1209#include <zephyr/posix/poll.h>
1210#endif
1211#if !defined(ZEPHYR_INCLUDE_POSIX_SYS_SOCKET_H_)
1213#endif
1214#endif /* CONFIG_POSIX_API */
1215
1216#endif /* ZEPHYR_INCLUDE_NET_SOCKET_H_ */
DNS resolving library.
int zvfs_poll(struct zvfs_pollfd *fds, int nfds, int poll_timeout)
int zsock_ioctl_impl(int sock, unsigned long request, va_list ap)
Control underlying socket parameters.
int zsock_getpeername(int sock, struct sockaddr *addr, socklen_t *addrlen)
Get peer name.
ssize_t zsock_sendto(int sock, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)
Send data to an arbitrary network address.
int zsock_connect(int sock, const struct sockaddr *addr, socklen_t addrlen)
Connect a socket to a peer network address.
int zsock_socketpair(int family, int type, int proto, int *sv)
Create an unnamed pair of connected sockets.
void * zsock_get_context_object(int sock)
Obtain a file descriptor's associated net context.
int zsock_accept(int sock, struct sockaddr *addr, socklen_t *addrlen)
Accept a connection on listening socket.
static ssize_t zsock_send(int sock, const void *buf, size_t len, int flags)
Send data to a connected peer.
Definition socket.h:458
int zsock_bind(int sock, const struct sockaddr *addr, socklen_t addrlen)
Bind a socket to a local network address.
static int zsock_poll(struct zsock_pollfd *fds, int nfds, int timeout)
Efficiently poll multiple sockets for events.
Definition socket.h:598
int zsock_socket(int family, int type, int proto)
Create a network socket.
int zsock_getsockopt(int sock, int level, int optname, void *optval, socklen_t *optlen)
Get various socket options.
void zsock_freeaddrinfo(struct zsock_addrinfo *ai)
Free results returned by zsock_getaddrinfo()
static ssize_t zsock_recv(int sock, void *buf, size_t max_len, int flags)
Receive data from a connected peer.
Definition socket.h:513
int zsock_gethostname(char *buf, size_t len)
Get local host name.
int zsock_getsockname(int sock, struct sockaddr *addr, socklen_t *addrlen)
Get socket name.
const char * zsock_gai_strerror(int errcode)
Convert zsock_getaddrinfo() error code to textual message.
int zsock_fcntl_impl(int sock, int cmd, int flags)
Control blocking/non-blocking mode of a socket.
int zsock_shutdown(int sock, int how)
Shutdown socket send/receive operations.
ssize_t zsock_recvmsg(int sock, struct msghdr *msg, int flags)
Receive a message from an arbitrary network address.
ssize_t zsock_recvfrom(int sock, void *buf, size_t max_len, int flags, struct sockaddr *src_addr, socklen_t *addrlen)
Receive data from an arbitrary network address.
#define IFNAMSIZ
Network interface name length.
Definition socket.h:815
int zsock_setsockopt(int sock, int level, int optname, const void *optval, socklen_t optlen)
Set various socket options.
ssize_t zsock_sendmsg(int sock, const struct msghdr *msg, int flags)
Send data to an arbitrary network address.
static char * zsock_inet_ntop(sa_family_t family, const void *src, char *dst, size_t size)
Convert network address from internal to numeric ASCII form.
Definition socket.h:683
int zsock_inet_pton(sa_family_t family, const char *src, void *dst)
Convert network address from numeric ASCII form to internal representation.
int zsock_close(int sock)
Close a network socket.
int zsock_listen(int sock, int backlog)
Set up a STREAM socket to accept peer connections.
int zsock_getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
Resolve a network address to a domain name or ASCII address.
int zsock_getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
Resolve a domain name to one or more network addresses.
#define DNS_MAX_NAME_SIZE
Max size of the resolved name.
Definition dns_resolve.h:46
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
unsigned short int sa_family_t
Socket address family type.
Definition net_ip.h:168
char * net_addr_ntop(sa_family_t family, const void *src, char *dst, size_t size)
Convert IP address to string form.
size_t socklen_t
Length of a socket address.
Definition net_ip.h:172
Public kernel APIs.
__SIZE_TYPE__ ssize_t
Definition types.h:28
IPv6 and IPv4 definitions.
flags
Definition parser.h:96
BSD select support functions.
#define bool
Definition stdbool.h:13
Interface description structure.
Definition socket.h:819
char ifr_name[Z_DEVICE_MAX_NAME_LEN]
Network interface name.
Definition socket.h:820
IPv6 address struct.
Definition net_ip.h:143
Incoming IPv6 packet information.
Definition socket.h:1074
struct in6_addr ipi6_addr
Destination IPv6 address.
Definition socket.h:1075
unsigned int ipi6_ifindex
Receive interface index.
Definition socket.h:1076
IPv4 address struct.
Definition net_ip.h:155
Incoming IPv4 packet information.
Definition socket.h:951
unsigned int ipi_ifindex
Network interface index.
Definition socket.h:952
struct in_addr ipi_spec_dst
Local address.
Definition socket.h:953
struct in_addr ipi_addr
Header Destination address.
Definition socket.h:954
Struct used when setting a IPv4 multicast network interface.
Definition socket.h:984
struct in_addr imr_interface
IP address of local interface.
Definition socket.h:986
struct in_addr imr_multiaddr
IP multicast group address.
Definition socket.h:985
Struct used when joining or leaving a IPv4 multicast group.
Definition socket.h:975
int imr_ifindex
Network interface index.
Definition socket.h:978
struct in_addr imr_multiaddr
IP multicast group address.
Definition socket.h:976
struct in_addr imr_address
IP address of local interface.
Definition socket.h:977
Struct used when joining or leaving a IPv6 multicast group.
Definition socket.h:1023
struct in6_addr ipv6mr_multiaddr
IPv6 multicast address of group.
Definition socket.h:1025
int ipv6mr_ifindex
Network interface index of the local IPv6 address.
Definition socket.h:1028
Message struct.
Definition net_ip.h:257
Generic sockaddr struct.
Definition net_ip.h:408
Definition used when querying address information.
Definition socket.h:276
struct zsock_addrinfo * ai_next
Pointer to next address entry.
Definition socket.h:277
int ai_family
Address family of the returned addresses.
Definition socket.h:279
int ai_flags
Additional options.
Definition socket.h:278
char * ai_canonname
Optional official name of the host.
Definition socket.h:285
int ai_protocol
Protocol for addresses, 0 means any protocol.
Definition socket.h:281
struct sockaddr * ai_addr
Pointer to the address.
Definition socket.h:284
int ai_socktype
Socket type, for example SOCK_STREAM or SOCK_DGRAM.
Definition socket.h:280
int ai_eflags
Extended flags for special usage.
Definition socket.h:282
socklen_t ai_addrlen
Length of the socket address.
Definition socket.h:283
Definition of the monitored socket/file descriptor.
Definition socket_poll.h:31