Indy 9
|
TIdIdentQueryEvent = procedure (AThread: TIdPeerThread; AServerPort, AClientPort : Integer) of object;
AThread represents the thread of execution for the client connection. AServerPort and AClientPort are the values read from the client connection in AThread, and indicate the connection of interest for the Ident protocol.
Applications must assign a procedure to the event handler to allow responding to the event notification. The event handler must use AThread, AServerPort, and AClientPort to locate the user identifier for the specified connection.
If a connection exists for the specified values, the user identifier for the connection should be sent as a reply using TIdIdentServer.ReplyIdent.
If a connection exists, but the identifier does not conform to the username or mail address requirements of the Ident protocol, the reply message should be sent using TIdIdentServer.ReplyOther.
A reply message may also be sent using TIdIdentServer.ReplyError for specific TIdIdentErrorType values, when the associated error condition is detected.