Maybe you have only detected the disconnection of the data socket and the
control socket will follow that? I'm not sure how disconnections with the
data socket are handled.  Maybe someone else knows?

Dan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Arnold FLUTEAUX
Sent: 11 July 2006 08:50
To: twsocket@elists.org
Subject: Re: [twsocket] Problem with FTPClient when a shutdown

To launch a new connection is not a problem. But to launch it, I must know
if the winsock is deconnected or no. 
If winsock is always connected then I try again to launch the command which
has had a problem and if winsock is disconnected, I launch a new connection
in other procedure than requestdone.
My problem is why when I cut off the connection during a RETR command, the
connected property is set yet to true and the controlsocket.state property
is not set to wsclosed.
 
 
 
Create a custom message handler that starts a new connect.  Then post the
required message from RequestDone to initiate the new connection after
RequestDone has exited.  You shouldn't try to reconnect from RequestDone as
far as I know, and you definitely shouldn't call ProcessMessages (that will
lead to even more problems)
 
Dan

 

 

Arnold Fluteaux

Chargé d'Affaires

SCJ Informatique

 

02.35.59.22.55

06.15.77.70.14

 

-- 
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

Reply via email to