Internet Direct (Indy) Version 9.0.2 Beta
|
function Accept(ASocket: TIdStackSocketHandle): TIdIOHandler; override;
Accept creates and opens a TIdIOHandlerSocket instance that is used to accept the bind the socket handle provided in ASocket to a client connection.
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.