System::Net::Sockets::Socket::EndReceive method

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)
ParameterTypeDescription
asyncResultSystem::SharedPtr<IAsyncResult>An IAsyncResult object that represents an asynchronous receive operation.

ReturnValue

The number of bytes that are received.

See Also

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)
ParameterTypeDescription
asyncResultSystem::SharedPtr<IAsyncResult>An IAsyncResult object that represents an asynchronous receive operation.
errorCodeSocketError&The output parameter where the error code will be assigned when the receive operation fails.

ReturnValue

The number of received bytes.

See Also