What is your doubt about socket?

To develop a FTP client/server pair first read the FTP RFC and maybe some other related RFCs.

Make them work in command line then worry about the GUI.
...