FD_ISSET TCP UDP

Check if a socket file descriptor ID is a member of a file descriptor set. See function NET_SOCK_DESC_IS_SET() for more information.

Files

net_bsd.h

Prototype

FD_ISSET(fd, fdsetp);

Arguments

fd

File descriptor bit to be checked.

fdsetp

Pointer to the file descriptor set where 'fd' will be checked if it is set.

Returned Value

A non-zero value if the bit for the file descriptor 'fd' is set in the file descriptor set pointed to by 'fdset'.

0, otherwise.

Required Configuration

None.