System.Net.Socket.TSocket.EndReceiveBytesFrom
Delphi
function EndReceiveBytesFrom(const AAsyncResult: IAsyncResult; out AEndPoint: TNetEndPoint): TBytes; overload;
function EndReceiveBytesFrom(const AAsyncResult: IAsyncResult): TBytes; overload; inline;
C++
System::DynamicArray<System::Byte> __fastcall EndReceiveBytesFrom(const System::Types::_di_IAsyncResult AAsyncResult, /* out */ TNetEndpoint &AEndPoint)/* overload */;
System::DynamicArray<System::Byte> __fastcall EndReceiveBytesFrom(const System::Types::_di_IAsyncResult AAsyncResult)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Receives an array of bytes from a remote socket using the specified result returned by a previous call to BeginReceiveFrom.
Calls to EndReceiveBytesFrom block the caller until the incoming bytes are received. However, you should call EndReceiveBytesFrom only after you receive a callback from a previous call to BeginReceiveFrom, so the call should return immediately.
The Endpoint
output parameter indicates the source end point that sends the bytes.
Exceptions
EndReceiveBytesFrom re-raises any exceptions that the asynchronous call to the following methods may raise: