EndReceive()
Contents
[
Hide
]Socket::EndReceive(System::SharedPtr<IAsyncResult>) method
Waits until the specified asynchronous receive operation completes.
int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult)
Arguments
Parameter | Type | Description |
---|---|---|
asyncResult | System::SharedPtr<IAsyncResult> | An IAsyncResult object that represents an asynchronous receive operation. |
Return Value
The number of bytes that are received.
Socket::EndReceive(System::SharedPtr<IAsyncResult>, SocketError&) method
Waits until the specified asynchronous receive operation completes.
int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)
Arguments
Parameter | Type | Description |
---|---|---|
asyncResult | System::SharedPtr<IAsyncResult> | An IAsyncResult object that represents an asynchronous receive operation. |
errorCode | SocketError& | The output parameter where the error code will be assigned when the receive operation fails. |
Return Value
The number of received bytes.
See Also
- Enum SocketError
- Typedef SharedPtr
- Class IAsyncResult
- Class Socket
- Namespace System::Net::Sockets
- Library Aspose.Slides