c++ - Send Close File Signal to FTP Server -
I am implementing FTP Client in C ++ using Windows Sockets. I have successfully connected to the server on port 21, and transmitted the file to PASV mode using the "STOR Sample.txt" command on the data port. The problem is that I can not tell the server about the completion of the transfer (I want to send the signal to stop the data connection) so that I can get "226 transfer ok" from the server on my control connection.
Next, I'm not receiving anything from the server () I think that's because this is still listening on the server data connection.
Take a look at this: / P>
When you send PASS and then you Tell the server that using STOR to restore the port to store the data and you connect to the port, the PAV command returns and sends the data - when you close this second socket and Continued sending the command with the original one.
Comments
Post a Comment