Then I think you may want to use some higher level class such as QNetworkAccessManager or QFtp instead of QTcpSocket as I think you know FTP protocol requires at least two sockets.
I don't know if this is a homework or not but this quote from C++ FAQ LITE gives the general idea:
"If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm."
Read the documentation then do it yourself. If you get stuck, ask a specific question!!!
Misha R.evolution - High level Debugging IDE
Programming is about 2 basic principles: KISS and RTFM!!!
Last edited by nthung; 26th May 2010 at 18:45.
If this program indeed uses FTP (which is yet to be confirmed, as the author only thinks it does), I strongly doubt they used bare sockets for this and not some Windows library for handling the protocol.
Then you need to figure out how the VC++ project uses FTP, and see if you can replace that code with QFTP class. Once you have done that research, if it does not work for you, state why and maybe we can help.
Bookmarks