System.Net.Socket.TSocket.EndReceiveStringFrom

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function EndReceiveStringFrom(const AAsyncResult: IAsyncResult; out AEndPoint: TNetEndPoint): string; overload;
function EndReceiveStringFrom(const AAsyncResult: IAsyncResult): string; overload; inline;

C++

System::UnicodeString __fastcall EndReceiveStringFrom(const System::Types::_di_IAsyncResult AAsyncResult, /* out */ TNetEndpoint &AEndPoint)/* overload */;
System::UnicodeString __fastcall EndReceiveStringFrom(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 a string from a remote socket using the specified result returned by a previous call to BeginReceiveFrom.

Calls to EndReceiveStringFrom block the caller until the incoming string are received. However, you should call EndReceiveStringFrom 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 string.

Exceptions

EndReceiveStringFrom re-raises any exceptions that the asynchronous call to the following methods may raise:

See Also