Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Francois PIETTE
 1) Client connects to the FTP server
 2) After timeout or in the case of connection error FTP server close
 connection
 3) FTP client recieve (immediately) message that FTP server is not
 avialable
 4) Other actions on the side of client

 How I can realaize the 3) step?
 Does anybody solved such problem and which solutions are avialable?

Winsock nor the component will let you know the server disconnected before
you try to send something. So the solution is to periodically send a command
just to get the error in case the server closed the connection. Note that
periodically sending a command will probably prevent the server from closing
the connection because it sees activity.

--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Disconnect from FTP Server [FTP Client]

2005-05-16 Thread Dan
NOOP is a good one.
Dan
- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, May 16, 2005 2:44 PM
Subject: Re: [twsocket] Disconnect from FTP Server [FTP Client]


Winsock nor the component will let you know the server disconnected
before you try to send something. So the solution is to periodically 
send
a
command just to get the error in case the server closed the connection.
Note
that periodically sending a command will probably prevent the server 
from
closing the connection because it sees activity.

Thanks a lot. Which command can you advise to send to check if FTP
server is avialable?
Any command that do the less possible processing on the server. PWD and 
SYST
are probably the best choices. SYST is not implemented on all servers.
Probably sending an invalid command could also be good, just to receive 
the
error unknown command or trigger the session closed event.

I send Syst command (after each one minute), but get an error
thought connection was established.
Which error ? Maybe the server you use doesn't implement that command.
It is possible to get the error when user view some directory -
(command Pwd) and in the same period of time program send command
Syst?
I don't understand what you try to tell me.
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be