Internet Direct (Indy) Version 9.0.2 Beta
TIdIdent.Query
This method performs an Ident Query.

procedure Query(APortOnServer: Word; APortOnClient: Word);
Parameters
APortOnServer: Word
the port that the client computer connected to the server on

APortOnClient: Word
the port that the client is using to make the connection.

Description
This method performs an Ident Query. When performing the query, the server sends a pair of ports. The first port is the port that the client computer connected to the server on. The second port is the port that the client is using to make the connection. The reply is placed in the Reply property and it is also parsed when using the ReplyCharset, ReplyOS, ReplyOther, and ReplyUserID properties. This method will raise an EIdIdentReply class if there is an error. These classes are EIdIdentInvalidPort, EIdIdentNoUser, EIdIdentHiddenUser, EIdIdentUnknownError, and EIdIdentQueryTimeOut.