Dan wrote: > Maybe you have only detected the disconnection of the data socket and > the > control socket will follow that?
I only wonder why CtrlSocket.State is wsClosed while Connected still is TRUE? Usually when you unplug the network cable there's no error unless you try to send something or keep-alive packets are being sent in the background. > I'm not sure how disconnections with > the > data socket are handled. Maybe someone else knows? RequestDone is triggered with an error. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > Dan > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:twsocket- > [EMAIL PROTECTED] On > Behalf Of Arnold FLUTEAUX > Sent: 11 July 2006 08:50 > To: [email protected] > 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
