Internet Direct (Indy) Version 9.0.1 Beta
TIdServerIOHandler.Accept
Realizes an IO handler for a threaded client connection.

function Accept(ASocket: TIdStackSocketHandle): TIdIOHandler; virtual;
Parameters
ASocket: TIdStackSocketHandle
Handle for the listener thread detecting the client connection.

Returns
TIdIOHandler - IO handler to use for the threaded client connection.

Description
Accept is a TIdIOHandler function that allows a multi-thread server to realize a TIdIOHandler instance using a specific input/output source for a threaded client connections.

Accept is called by the listener thread for the multi-thread server when a new threaded client connection is detected. Accept is used to create the TIdIOHandler using the socket handler for the listener thead. The return value is assigned to the TIdTCPConnection.IOHandler in the threaded client connection for subsequent input/output operations.

Accept is an empty implementation in TIdServerIOHandler that returns Nil. Descendant classes must override the method to crete IO handlers for newly accepted client connections that require a specific type of input/output source.