Internet Direct (Indy) Version 9.0.2 Beta
TIdServerIntercept
Specifies a socket handler for use with peer connections create by the listener thread in a TCP server.

TIdServerIntercept = class(TIdBaseComponent)
Description
TIdServerIntercept is an abstract class that creates instances of TIdConnectionIntercept socket handlers for peer connections created by the listener thread in a TCP Server.

TIdConnectionIntercept descendants will be used by peer connection to act as an intermediary between the socket binding for the connection and low-level operations that communicate with the protocol stack.

TIdServerIntercept provides virtual methods to initialize the server socket handler, and to provide new TIdConnectionIntercept handlers for peer connections when the connection is accepted.

Call Init to perform initialization tasks prior to using the TIdServerIntercept instance to accepting connections. Call Accept to create the TIdConnectionIntercept handler used by the peer connection.

Note: Do not create instances of TIdServerIntercept. Use descendant classes, like TIdServerInterceptOpenSSL, or create custom descendants that implement the virtual methods of TIdServerIntercept.