Hi,
i trying to send a record with TWSocket in delphi (code below).
send/receive works well, but when i close the connection to the server.
OnDataAvailable is fired and i get a message (from my showmessage) with
strange signs. That means i cast the incoming data to my record an get
something
Hi,
i've trying to detect when a client is abnormal disconnected from the server
(calling not the close-procedure). e.g. when the lan-cable is taken out.
the client detects the disconnect,but the server don't call the
OnClientDisconnect.
How can i realize that?
Greets frank
--
Geschenkt: 3
You could check a 'last alive' time stamp stored in your client class.
Cleanup the client after a timeout has elapsed. Use a single Timer to
check all clients actually in the list in intervals.
Arno Garrels
sure but how can i check the clients are reachable?
frank
--
Weitersagen: GMX
You could check a 'last alive' time stamp stored in your client class.
Cleanup the client after a timeout has elapsed. Use a single Timer to
check all clients actually in the list in intervals.
Arno Garrels
is there a procedure to send something direct to the clients or do i need a
2nd
something
end;
procedure TForm1.WSocketServer1ClientConnect(Sender: TObject;
Client: TWSocketClient; Error: Word);
begin
twsocket(client).OnChangeState := WSocket1ChangeState;
end;
Regards, Fredrik.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Frank
Hallo Arno,
am Freitag, 1. Juli 2005, 18:52:25 hast du geschrieben:
Arno Garrels wrote:
Hello Frank,
I've just tweaked the orginal Tcpsrv demo a bit. Dropped a timer on it
and let it send something in intervals, then I pluged off the patch
cable and here is the log:
There is now 1
Arno Garrels schrieb:
Frank Wunderlich wrote:
Arno Garrels schrieb:
Frank Wunderlich wrote:
Hallo Arno,
am Freitag, 1. Juli 2005, 18:52:25 hast du geschrieben:
Arno Garrels wrote:
Hello Frank,
I've just tweaked the orginal Tcpsrv demo a bit
Angus Robertson - Magenta Systems Ltd schrieb:
The only bullet proof way is use CWD and DIR to get a directory
listing, and parse it (many different formats) to get the file size.
These commands are supported by all FTP servers.
is there any parsing routine available which works for