I'm experimenting with an automatic FTP upload program to do patches for my game and I'm having trouble with the TCP stream.
I thought Eof() returned True if a TCP connection had been closed. However it's returning True when a connection is still active. (I think it happens whenever I read to the end of the incoming data from the FTP server).
So can somebody say for definite:
1. How I can tell when the server has finished sending lines to me and is ready for another FTP directive.
2. How I can tell if the TCP connection has been broken.
Thanks.
I thought Eof() returned True if a TCP connection had been closed. However it's returning True when a connection is still active. (I think it happens whenever I read to the end of the incoming data from the FTP server).
So can somebody say for definite:
1. How I can tell when the server has finished sending lines to me and is ready for another FTP directive.
2. How I can tell if the TCP connection has been broken.
Thanks.