[twsocket] problems with OnDataAvailable

2005-06-27 Thread Frank Wunderlich
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

[twsocket] detecting disconnect from twsocketserver

2005-06-27 Thread Frank Wunderlich
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

Re: [twsocket] detecting disconnect from twsocketserver

2005-06-27 Thread Frank Wunderlich
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

Re: [twsocket] detecting disconnect from twsocketserver

2005-06-27 Thread Frank Wunderlich
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

Re: [twsocket] Servertimeout ... i don't get it working

2005-07-01 Thread Frank Wunderlich
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

Re[2]: [twsocket] Servertimeout ... i don't get it working

2005-07-02 Thread Frank Wunderlich
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

Re: [twsocket] Servertimeout ... i don't get it working

2005-07-07 Thread Frank Wunderlich
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

Re: [twsocket] FTP Client - Size() Function

2005-07-31 Thread Frank Wunderlich
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