Internet Direct (Indy) Version 9.0.1 Beta
|
function Accept(ASocket: TIdStackSocketHandle): TIdIOHandler; virtual;
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.