Click here to Skip to main content
16,022,536 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I want to copy files/folders from my system to another systems (local server) using C#, I want to do this using "SOCKET" programming.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Jan-12 4:42am    
Not a question. What have you done so far? Any particular problem?
What protocol do you want to implement? Do you want to implement? Client part, server part or both? Why Socket level?
--SA

1 solution

Please see my comments to the question. There can be different ways to implement it. It could be based on some existing protocols or a custom application-level protocol. Please see http://en.wikipedia.org/wiki/Application_layer[^].

As the question is about file transfer only, one of the adequate options is FTP protocol, please see http://en.wikipedia.org/wiki/FTP[^].

Server side is more difficult part. Please see this CodeProject article: Advanced FTP Server[^].

Client part is pretty simple. You don't really need to use low-level sockets. All you need is the classes System.Net.FtpWebRequest and System.Net.FtpWebResponce. You can find a code sample here:
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900