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

接收的字节数。

另见