System::Net::Sockets::Socket::EndReceive メソッド

Socket::EndReceive(System::SharedPtr<IAsyncResult>) method

指定された非同期受信操作が完了するまで待機します。

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult)
パラメーター説明
asyncResultSystem::SharedPtr<IAsyncResult>非同期受信操作を表す IAsyncResult オブジェクトです。

ReturnValue

受信されたバイト数。

参照

Socket::EndReceive(System::SharedPtr<IAsyncResult>, SocketError&) method

指定された非同期受信操作が完了するまで待機します。

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)
パラメーター説明
asyncResultSystem::SharedPtr<IAsyncResult>非同期受信操作を表す IAsyncResult オブジェクトです。
errorCodeSocketError&受信操作が失敗したときにエラーコードが割り当てられる出力パラメータ。

ReturnValue

受信したバイト数。

参照