EndSend()

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

Waits until the specified asynchronous send operation completes.

int32_t System::Net::Sockets::Socket::EndSend(System::SharedPtr<IAsyncResult> asyncResult)

Arguments

ParameterTypeDescription
asyncResultSystem::SharedPtr<IAsyncResult>An IAsyncResult object that represents an asynchronous send operation.

Return Value

The number of sent bytes.

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

Waits until the specified asynchronous send operation completes.

int32_t System::Net::Sockets::Socket::EndSend(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)

Arguments

ParameterTypeDescription
asyncResultSystem::SharedPtr<IAsyncResult>An IAsyncResult object that represents an asynchronous send operation.
errorCodeSocketError&The output parameter where the error code will be assigned when the send operation fails.

Return Value

The number of sent bytes.

See Also