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

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

Väntar tills den angivna asynkrona mottagningsoperationen är klar.

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

ReturnValue

Antalet byte som tas emot.

Se även

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

Väntar tills den angivna asynkrona mottagningsoperationen är klar.

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

ReturnValue

Antalet mottagna byte.

Se även