System::Net::Sockets::Socket::EndSend method

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

等待指定的异步发送操作完成。

int32_t System::Net::Sockets::Socket::EndSend(System::SharedPtr<IAsyncResult> asyncResult)
参数类型描述
asyncResultSystem::SharedPtr<IAsyncResult>一个 IAsyncResult 对象,表示异步发送操作。

ReturnValue

已发送字节的数量。

另见

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

等待指定的异步发送操作完成。

int32_t System::Net::Sockets::Socket::EndSend(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)
参数类型描述
asyncResultSystem::SharedPtr<IAsyncResult>一个 IAsyncResult 对象,表示异步发送操作。
errorCodeSocketError&当发送操作失败时,错误代码将被分配到的输出参数。

ReturnValue

已发送字节的数量。

另见