kittaiyya
April 5th, 2008, 07:35 PM
Hello Everybody
I am a newbie in FTP or socket programing, I have designed an application to transfter data using both Socket and FTP in C++( Visual Studio).
What I would like to know is, Are there any advantages of using Socket programing over FTP?
I know FTP is a protocol which using TCP internally, similarly Socket also has two kinds of protocol associated with it, UDP and TCP depending on what you pick to send your data.
It is my understanding that Sockets are basically used to send data to another computer over a smaller network without having to set up a seperate machine as server.
In case of FTP, We have to have a dedicated machine as FTP server( we have to setup an FTP server right?) which has to be set up for any client program to access it, setting up an FTP server is not like writing a server program using TCP or is it ?
Another thing that is bothering me is, FTP server whether active or passive uses Port 21 ( command port) for the data transfer, so would that mean that at any time there can be only one FTP client connect to the server, whereas in Socket there can be lots of socket connecting to the server at the same time ?
I know these questions are basic, but there is not really a topic that tells that when using the sockets or FTP in our application what are the differnce, Kindly let me know what are the points i missed.
Kindly pardon me for my typos and bad english
Regards
Kittu
I am a newbie in FTP or socket programing, I have designed an application to transfter data using both Socket and FTP in C++( Visual Studio).
What I would like to know is, Are there any advantages of using Socket programing over FTP?
I know FTP is a protocol which using TCP internally, similarly Socket also has two kinds of protocol associated with it, UDP and TCP depending on what you pick to send your data.
It is my understanding that Sockets are basically used to send data to another computer over a smaller network without having to set up a seperate machine as server.
In case of FTP, We have to have a dedicated machine as FTP server( we have to setup an FTP server right?) which has to be set up for any client program to access it, setting up an FTP server is not like writing a server program using TCP or is it ?
Another thing that is bothering me is, FTP server whether active or passive uses Port 21 ( command port) for the data transfer, so would that mean that at any time there can be only one FTP client connect to the server, whereas in Socket there can be lots of socket connecting to the server at the same time ?
I know these questions are basic, but there is not really a topic that tells that when using the sockets or FTP in our application what are the differnce, Kindly let me know what are the points i missed.
Kindly pardon me for my typos and bad english
Regards
Kittu