INDListen::GetConnectionRequest Method
Retrieves the handle for a pending connection request.
Syntax
HRESULT GetConnectionRequest(
[in, out] INDConnector *pConnector,
[in, out] OVERLAPPED *pOverlapped
);
Parameters
pConnector [in, out]
An INDConnector interface that defines the connection request.pOverlapped [in, out]
A pointer to an OVERLAPPED structure that is used to indicate completion of the operation.
Return Value
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.
Return code | Description |
---|---|
ND_SUCCESS | The operation succeeded. |
ND_PENDING | The request is pending and will be completed when the listening peer accepts the connection request. |
ND_CANCELED | The listen request was closed. |
ND_DEVICE_REMOVED | The underlying Network Direct adapter was removed from the system. |
Remarks
You may issue multiple GetConnectionRequest requests to prepare for future connect requests. The overlapped requests complete one at a time for each connection request that is received. You detect completion of the overlapped request like you do for any other overlapped operation (see Remarks for INDAdapter::GetFileHandle).
Requirements
Product |
Microsoft Message Passing Interface (MS-MPI) |
Header |
Ndspi.h |
See Also
Send comments about this topic to Microsoft
Build date: 7/2/2010