Re: New user: Cannot disconnect and reconnect on FTP Server Timeout.

Giganews Newsgroups
Subject: Re: New user: Cannot disconnect and reconnect on FTP Server Timeout.
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Thu, 11 Mar 2004

"Brendan Blake" <bbla…@dsl.pipex.com> wrote in message
news:9ACA3FA92C95E240bbla…@dsl.pipex.com...

> But I can't, for the life of me, find out how to disconnect and reset.

Just call Disconnect() and then Connect() again.

> But disconnecting (using Quit) doesn't work

Don't use Quit().  Use Disconnect().  Quit() tries to write a QUIT command
to the socket before disconnecting.  But if the server already disconnected
the connection, there is no need to send a QUIT command at all.

Gambit

Replies

In response to

New user: Cannot disconnect and reconnect on FTP Server Timeout. posted by Brendan Blake on Thu, 11 Mar 2004