12 Id_TIdFinger_VerboseOutput
= False;
14 TIdFinger
= object(TIdTCPClient
)
17 FVerboseOutput
: Boolean;
18 procedure SetCompleteQuery(AQuery
: string);
19 function GetCompleteQuery
: string;
21 { constructor Create(AOwner: TComponent); override;
22 } function Finger
: string;
24 property Query
: string read FQuery write FQuery
;
25 property CompleteQuery
: string read GetCompleteQuery write SetCompleteQuery
;
26 property VerboseOutput
: Boolean read FVerboseOutPut write FVerboseOutPut
27 default Id_TIdFinger_VerboseOutput
;
28 property Port default IdPORT_FINGER
;
31 function NewIdFinger(AOwner
: PControl
):PIdFinger
;
39 //constructor TIdFinger.Create(AOwner: TComponent);
40 function NewIdFinger(AOwner
: PControl
):PIdFinger
;
43 New( Result
, Create
);
46 Port
:= IdPORT_FINGER
;
47 FVerboseOutput
:= Id_TIdFinger_VerboseOutput
;
51 function TIdFinger
.Finger
: string;
70 function TIdFinger
.GetCompleteQuery
: string;
72 Result
:= FQuery
+ '@' + Host
;
75 procedure TIdFinger
.SetCompleteQuery(AQuery
: string);
79 p
:= RPos('@', AQuery
, -1);
82 if (p
< Length(AQuery
)) then
84 Host
:= Copy(AQuery
, p
+ 1, Length(AQuery
));
86 FQuery
:= Copy(AQuery
, 1, p
- 1);