Disconnects the endpoint from the peer.
HRESULT Disconnect( [in, out] OVERLAPPED *pOverlapped );
- pOverlapped [in, out]
A pointer to an OVERLAPPED structure that is used to indicate completion of the operation.
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 succeeded.
The request is pending and will be completed when the listening peer is disconnected.
The endpoint was removed.
The underlying Network Direct adapter was removed from the system.
The endpoint is not connected.
This method implicitly flushes all outstanding requests.
You can reuse the endpoint after the request completes.
Either side of the connection can terminate the connection; the disconnect handshake is protocol dependent.
Calling the INDEndpoint::Release method on the endpoint without first disconnecting is valid. If the last reference does not disconnect before releasing, the object should implicitly disconnect. Disconnecting should implicitly flush pending requests (the pending requests will show up in the completion queue with an ND_CANCELED status).
|Microsoft Message Passing Interface (MS-MPI)|
Build date: 7/2/2010