__WSAFDIsSet

Specifies whether a socket is included in a set of socket descriptors.

Syntax

int __WSAFDIsSet(
         SOCKET fd,
         fd_set *set
)  

Parameters

fd
Type: SOCKET 

Descriptor identifying a socket.

set
Type: fd_set *

Pointer to an fd_set structure defining the group of SOCKET objects to be checked.

Return value

Type: int 

Return codes

Returns a nonzero integer if the socket is a member of the group specified in the set parameter. Returns zero if the socket is not a member of the group specified in the set parameter.

Requirements

Header: Declared in winsock2.h.

Library: Use ws2_32.lib.