IrDA and listen
The Windows Sockets listen function is used by IrDA server applications to place the stack in a mode to receive incoming connections on the specified socket. The listen function does not block.
if (listen(ServSock, 2) == SOCKET_ERROR)
{
// call WSAGetLastError
}
The backlog parameter specifies how many inbound connections the stack should accept on behalf of the application before the application is able to further process (using the Windows Sockets accept function) those connections.