Re: [twsocket] Aborting a File Transfer from FtpServer

2017-07-11 Thread Allan Fernandes
Hi,
Just wanted to know if there is a ready made option to stop a transfer midway. 
Now that you have cleared my doubts I will program accordingly.
ThanksAllan

  From: Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk>
 To: twsocket@lists.elists.org 
 Sent: Tuesday, 11 July 2017 4:36 PM
 Subject: Re: [twsocket] Aborting a File Transfer from FtpServer
   
> My Program has a Client Side and a Server Side. I have taken care 
> that the Client side can abort a file transfer. Now I wanted to 
> provide Abort on the Server Side as well. or Is this not they way 
> it is done ?

The FTP server is usually non-interactive, it would not consider
aborting a transfer part way through.  

There are no protocol commands for reverse ABORT, or indeed to confirm
a transfer has successfully completed or been stopped part way through,
the data connection is simply closed by the server. 

The server can decide not to start a transfer and return an error code
instead, perhaps that is what you mean by abort?

If the server PC was closing down, all sockets would simply close. 

Angus



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

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

Re: [twsocket] Aborting a File Transfer from FtpServer

2017-07-11 Thread Angus Robertson - Magenta Systems Ltd
> My Program has a Client Side and a Server Side. I have taken care 
> that the Client side can abort a file transfer. Now I wanted to 
> provide Abort on the Server Side as well. or Is this not they way 
> it is done ?

The FTP server is usually non-interactive, it would not consider
aborting a transfer part way through.  

There are no protocol commands for reverse ABORT, or indeed to confirm
a transfer has successfully completed or been stopped part way through,
the data connection is simply closed by the server. 

The server can decide not to start a transfer and return an error code
instead, perhaps that is what you mean by abort?

If the server PC was closing down, all sockets would simply close. 

Angus



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


Re: [twsocket] Aborting a File Transfer from FtpServer

2017-07-11 Thread Allan Fernandes
My Program has a Client Side and a Server Side. I have taken care that the 
Client side can abort a file transfer. Now I wanted to provide Abort on the 
Server Side as well. or Is this not they way it is done ?



  From: Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk>
 To: twsocket@lists.elists.org 
 Sent: Tuesday, 11 July 2017 2:07 PM
 Subject: Re: [twsocket] Aborting a File Transfer from FtpServer
   
> What is the correct way of Aborting a File Transfer from 
> TFtpServer ?

The FTP server does not care how you stop a download, it can cope with
the ABORT command or lost connection.

Angus

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


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