开发者

Simple FTP program in C or Java

I nee开发者_如何学编程d to write a program in C or Java to transfer the files from windows to Linux machine. requirement is to connect Linux machine, authenticate, option for select mode , transfer the file and disconnect.

But I am not getting a simple C or Java program for it,at least connect it and transfer a simple file. can you tell me please from where I can start? or any simple example programs are available, any clue any link.

Thanks in Advance


search for sample client/server applications in Java or C as you prefer.Than you can start adding your communication protocol. You may be interested in asynchronous connections using select or other methods so the server will not hang waiting for client connections...


First thing I would do is decide Java or C.

Deciding that, google for " FTP Libraries". Read through their documentation and proceed to build your client.

Keep in mind that you must be connecting to a machine that is accepting FTP connections (or perhaps you have to write the FTP server side as well? Get verification of this from whoever is giving you the assignment.)


You might want to have a look at the libcurl library. There is, in the examples section, an ftp client program that might suit you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜