System::Net::Sockets::Socket::EndReceive metod

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

Väntar tills den angivna asynkrona mottagningsoperationen slutförs.

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult)
ParameterTypeBeskrivning
asyncResultSystem::SharedPtr<IAsyncResult>Ett IAsyncResult‑objekt som representerar en asynkron mottagningsoperation.

ReturnValue

Antalet byte som mottas.

Se även

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

Väntar tills den angivna asynkrona mottagningsoperationen slutförs.

int32_t System::Net::Sockets::Socket::EndReceive(System::SharedPtr<IAsyncResult> asyncResult, SocketError &errorCode)
ParameterTypeBeskrivning
asyncResultSystem::SharedPtr<IAsyncResult>Ett IAsyncResult‑objekt som representerar en asynkron mottagningsoperation.
errorCodeSocketError&Utdata‑parametern där felkoden kommer att tilldelas när mottagningsoperationen misslyckas.

ReturnValue

Antalet mottagna byte.

Se även