12 TIdDayTimeServer
= object(TIdTCPServer
)
15 function DoExecute(AThread
: TIdPeerThread
): boolean; override;
17 { constructor Create(AOwner: TComponent); override;
19 property TimeZone
: string read FTimeZone write FTimeZone
;
20 property DefaultPort default IdPORT_DAYTIME
;
22 PIdDayTimeServer
=^TIdDayTimeServer
;
23 function NewIdDayTimeServer(AOwner
: PControl
):PIdDayTimeServer
;
30 function NewIdDayTimeServer(AOwner
: PControl
):PIdDayTimeServer
;
31 //constructor TIdDayTimeServer.Create(AOwner: TComponent);
33 New( Result
, Create
);
37 DefaultPort
:= IdPORT_DAYTIME
;
42 function TIdDayTimeServer
.DoExecute(AThread
: TIdPeerThread
): boolean;
45 with AThread
.Connection
do
47 Writeln(FormatDateTime('dddd, mmmm dd, yyyy hh:nn:ss', Now
) + '-' +