FD_SET macro (winsock.h)

The fd_set structure is used by various Windows Sockets functions and service providers, such as the select function, to place sockets into a "set" for various purposes, such as testing a given socket for readability using the readfds parameter of the select function.

Syntax

void FD_SET(
   fd,
   set
);

Parameters

fd

set

Return value

None

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winsock.h (include Winsock2.h, Winsock.h)

See also

WSAAsyncSelect

WSAEventSelect

select