System::Net::Sockets::Socket::EndSend 方法

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

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

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

ReturnValue

已发送字节的数量。

另见