CSocketWrench::IsListening Method  
 
BOOL IsListening();

The IsListening method determines if the socket is listening for connection requests.

Parameters

None.

Return Value

If the socket is being used to listen for connection requests, the method returns a non-zero value. If the socket is not listening or the socket handle is invalid, the method returns zero.

Remarks

The IsListening method determines if the socket is being used in a server application to actively listen for incoming connection requests from client applications. A listening socket can be created using the Listen method.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header: Include cswsock10.h
Import Library: cswskv10.lib

See Also

IsReadable, IsWritable, IsConnected, Listen