INDConnector::CompleteConnect Method
Completes the connection request initiated by a previous call to the INDConnector::Connect method. Call this method after the peer accepts your connection request (and your connect request completes).
Syntax
HRESULT CompleteConnect(
[in, out] OVERLAPPED *pOverlapped
);
Parameters
- pOverlapped [in, out]
A pointer to an OVERLAPPED structure that is used to indicate completion of the operation. The variable must remain valid for the duration 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_CONNECTION_INVALID | The endpoint is not connected. |
ND_PENDING | The request is pending and will be completed when the operation completes. |
ND_DEVICE_REMOVED | The underlying local Network Direct adapter was removed from the system. |
Remarks
You must call this method to complete the connection. If you do not call this method, the connection times out.
The remote peer specifies the inbound and outbound read limits that it wants to use. To get the limits, call the INDConnector::GetConnectionData method. If the limits are not acceptable, call the INDConnector::Reject method to cancel the connection.
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