|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
how to write ftp server and client for windows in C
Hi
I have to m/c with windows. Both are connected through internet. I want to transfer automatically some file from 1 m/c to the other. I have VC++ 6 with me. Can anybody help me in this regard. I have done networking programming in unix with c. but I do not have programming exp with windows. So it will b of real help for me if any of u can guide me in writing a ftp server and client in C for windows. Thanks rohit ![]() |
|
#2
|
||||
|
||||
|
Use OpenSSH for Windows! Writing servers secure enough to put on production machines connected to the Internet is a challenging task that even the experts fail with regularly. There are libraries available to include in your code if you are dead set on rolling your own that can provide a decent framework for protection, but if you are going to start from square one, even if you are an expert (of course an expert wouldn't do that) you should expect to miss a few things.
__________________
Left DevShed May 28, 2005. Reason: Unresponsive administrators. Free code: http://sol-biotech.com/code/. Secure Programming: http://sol-biotech.com/code/SecProgFAQ.html. Performance Programming: http://sol-biotech.com/code/PerformanceProgramming.html. It is not that old programmers are any smarter or code better, it is just that they have made the same stupid mistake so many times that it is second nature to fix it. --Me, I just made it up The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man. --George Bernard Shaw |
|
#3
|
|||
|
|||
|
Well im not at all an expert in network programming. I just did some in unix. However my objectvive is to transfer automatically some files from 1 m/c to other automatically. if thing become extremely complex with writing a client and a server module, please suggest me some alternative.
It would b really helpfull if u suggest me some books which deal with windows networking thoroughly. Thanks |
|
#4
|
||||
|
||||
|
So, you are not an expert, yet you still want to roll your own?
Almost everything you know in the *nix world will work unchanged in the Windows world with a couple of small exceptions. There is plenty of socket code posted here and on the web, try searching. |
|
#5
|
||||
|
||||
|
My page on getting started with Winsock programming should point you in the right direction: http://members.aol.com/DSC30574/sockets/winsock.html
It outlines the basic procedure for converting UNIX sockets code to Winsock, mentions a few caveats, and provides links to other sources. |
|
#6
|
||||
|
||||
|
if you want to write an ftp client, here's an ftp client library:
www.1nfamus.netfirms.com about halfway down. if you want to write an ftp server, read this: ftp://ftp.rfc-editor.org/in-notes/rfc959.txt and you should definitly check out dwise's page it has some good links on it. |
|
#7
|
|||
|
|||
|
Thanks a lot guys. dwise's site seems really helpfull.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > how to write ftp server and client for windows in C |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|