NET_SOCK_DESC_IS_SET
Check if a socket file descriptor ID is a member of a file descriptor set. See also function NetSock_Sel().
Files
net_sock.h
Prototype
NET_SOCK_DESC_IS_SET(desc_nbr, p_desc_set);
Arguments
desc_nbr
This is the socket file descriptor ID returned by NetSock_Open()/socket()
when the socket was created or by NetSock_Accept()/accept()
when a connection was accepted.
p_desc_set
Pointer to a socket file descriptor set.
Returned Value
1
, if the socket file descriptor ID is a member of the file descriptor set;
0
, otherwise.
Required Configuration
Available only if NET_SOCK_CFG_SEL_EN
is enabled (see section Socket Layer Configuration).
Notes / Warnings
NetSock_Sel()/select()
checks or waits for available operations or error conditions on any of the socket file descriptor members of a socket file descriptor set.
0
is returned if the socket file descriptor ID or the file descriptor set is invalid.