Internet Direct (Indy) Version 9.0.1 Beta
TIdServerIntercept.Accept
Creates a socket handler for a peer connection.

function Accept(AConnection: TComponent): TIdConnectionIntercept; virtual; abstract;
Parameters
AConnection: TComponent
Socket handle for the peer connection.

Return Values:

Description
Accept is an abstract virtual TIdConnectionIntercept function that creates the socket handler to be used for a peer connection. Accept is used by TIdListenerThread descendants to create a socket handler for threads that must access a server using a socket handler.

ABinding is the socket handle used to communicate with the peer connection.

Descendant of TIdServerIntercept must implement the abstract Accept method to provide the TIdConnectionIntercept descendant that is appropriate for the TIdServerIntercept.