System.Net.Socket.TSocket.EndConnect
Delphi
procedure EndConnect(const AAsyncResult: IAsyncResult);
C++
void __fastcall EndConnect(const System::Types::_di_IAsyncResult AAsyncResult);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Net.Socket.pas System.Net.Socket.hpp |
System.Net.Socket | TSocket |
Description
Establishes a connection to a previously specified endpoint using the specified result returned by a previous call to BeginConnect.
Calls to EndConnect block the caller until a connection is established. However, you should call EndConnect only after you receive a callback from a previous call to BeginConnect, so the call should return immediately.
Exceptions
EndConnect re-raises any exceptions that the asynchronous call to Connect may raise. See TSocket.Connect, Exceptions.