System.Net.Socket.TSocket.EndReceiveBytes
Delphi
function EndReceiveBytes(const AAsyncResult: IAsyncResult): TBytes;
C++
System::Sysutils::TBytes __fastcall EndReceiveBytes(const System::Types::_di_IAsyncResult AAsyncResult);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Obtains data sent from the connected endpoint as bytes.
Calls to EndReceiveBytes block the caller until it returns the requested data. However, you should call EndReceiveBytes only after you receive a callback from a previous call to BeginReceive, so the call should return immediately.
Exceptions
EndReceiveBytes re-raises any exceptions that the asynchronous call to the following methods may raise: