System.Net.Socket.TSocket.EndAccept

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function EndAccept(const AAsyncResult: IAsyncResult): TSocket;

C++

TSocket* __fastcall EndAccept(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

Accepts an incoming connection using the specified result returned by a previous call to BeginAccept.

Calls to EndAccept block the caller until an incoming connection is accepted. However, you should call EndAccept only after you receive a callback from a previous call to BeginAccept, so the call should return immediately.

Exceptions

EndAccept re-raises any exceptions that the asynchronous call to Accept may raise. See TSocket.Accept, Exceptions.

See Also