__WSAFDIsSet function (winsock2.h)

The __WSAFDIsSet function returns a value indicating whether a socket is included in a set of socket descriptors.

Syntax

int __WSAFDIsSet(
  SOCKET fd,
  fd_set *unnamedParam2
);

Parameters

fd

A file descriptor identifying a socket.

unnamedParam2

A pointer to an fd_set structure containing the set of socket descriptors.

Return value

Returns a non-zero value if the socket specified in fd is a member of the set specified in unnamedParam2. Otherwise, the function returns 0.

Remarks

Windows Phone 8: This function is supported for Windows Phone Store apps on Windows Phone 8 and later.

Windows 8.1 and Windows Server 2012 R2: This function is supported for Windows Store apps on Windows 8.1, Windows Server 2012 R2, and later.

The FD_ISSET macro expands to a call of function __WSAFDIsSet.

Requirements

Requirement Value
Minimum supported client Windows 8.1, Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header winsock2.h (include Winsock2.h)
Library Ws2_32.lib
DLL Ws2_32.dll

See also