System::Net::Sockets::Socket::EndReceive methode

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

Wacht tot de opgegeven asynchrone ontvangbewerking is voltooid.

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult)
ParameterTypeBeschrijving
asyncResultSystem::SharedPtr<IAsyncResult>Een IAsyncResult object dat een asynchrone ontvangoperatie vertegenwoordigt.

ReturnValue

Het aantal bytes dat wordt ontvangen.

Zie ook

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

Wacht tot de opgegeven asynchrone ontvangbewerking is voltooid.

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)
ParameterTypeBeschrijving
asyncResultSystem::SharedPtr<IAsyncResult>Een IAsyncResult object dat een asynchrone ontvangoperatie vertegenwoordigt.
errorCodeSocketError&De uitvoerparameter waarin de foutcode wordt geplaatst wanneer de ontvangoperatie mislukt.

ReturnValue

Het aantal ontvangen bytes.

Zie ook