Creates a Listen object that listens for incoming connection requests.
HRESULT Listen( [in] SIZE_T Backlog, [in] int Protocol, [in] USHORT Port, [out, optional] USHORT *pAssignedPort, [out] INDListen **ppListen );
The maximum number of pending connection requests to maintain for the listen request. Set to zero to indicate no limit.
An IANA Internet Protocol number. Use the AF_INET and AF_INET6 constants to set this parameter.
A client implementing TCP socket support over a Network Direct provider would use the TCP protocol number, 6. A client implementing UDP socket support over a Network Direct provider would use the UDP protocol number, 17. The underlying transport protocol, whether Ethernet or InfiniBand, is not relevant.
The port number (in network byte order) within IANA protocol on which to listen. If zero, the Network Direct provider sets the pAssignedPort parameter to an available port.
pAssignedPort [out, optional]
The port number (in network byte order) assigned by the provider. May be NULL if the Port parameter is non-zero.
An INDListen interface that you use to listen for connection requests.
When you implement this method, you should return the following return values. If you return others, try to use well-known values to aid in debugging issues.
The operation completed successfully.
The protocol value is not valid.
The specified port is already in use on this Network Direct adapter instance. The instance was created when you called the INDProvider::OpenAdapter method.
The pAssignedPort cannot be NULL if the Port parameter is zero.
There were not enough resources to complete the request.
Network Direct providers may restrict the range of the backlog and silently apply limits. There is no provision for retrieving the actual backlog value.
The server-side of a client-server application listens for connection requests from the client-side.
|Microsoft Message Passing Interface (MS-MPI)|
Build date: 7/2/2010