Listen

This method creates a socket and sets it to Listen mode. Listen works only for Transmission Control Protocol/Internet Protocol (TCP/IP) connections.

Syntax

object.Listen

Parameters

object
Required. Object expression that evaluates to a Winsock object.

Return Value

None.

Remarks

The ConnectionRequest event occurs when there is an incoming connection. When handling ConnectionRequest, the application should use the Accept method to accept the connection.