INDConnector::Reject Method
Rejects a pending connection request.
Syntax
HRESULT Reject(
[in, optional] const VOID *pPrivateData,
[in] SIZE_T PrivateDataLength
);
Parameters
pPrivateData [in, optional]
Private data to transmit to the peer. May be NULL if PrivateDataLength is zero.PrivateDataLength [in]
The size, in bytes, of the pPrivateData buffer.
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 connection is fully established. |
ND_DEVICE_REMOVED | The underlying Network Direct adapter was removed from the system. |
ND_CONNECTION_ABORTED | The connecting peer aborted the connection establishment. |
ND_ACCESS_VIOLATION | The pPrivateData buffer is not valid for the size given in PrivateDataLength. |
ND_BUFFER_OVERFLOW | The specified buffer length exceeds the capabilities of the underlying Network Direct hardware. The limits are reported in the ND_ADAPTER_INFO structure (see INDAdapter::Query). |
Remarks
Either the remote peer or connecting peer can call this method to reject the connection. The connecting peer would call this method after determining that the inbound and outbound read limits that the remote peer specifies are not acceptable.
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