source code for ftp program in C

pls can anyone provide me with a source code for writing a ftp client in C in linux based systems.
i am looking for source codes and not softwares
s_univAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rajaamirapuCommented:
0
s_univAuthor Commented:
thanks. but can i have more specific information as to how to start from sratch on developing a ftp client in C
0
rajaamirapuCommented:
Read RFC for FTP here this gives you a idea
http://www.faqs.org/rfcs/rfc959.html
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

keteracelCommented:
Try looking at beej's guide to network programming to give you the basics of network programming. Then look in the rfc doc given by rajaamirapu(above) to see what FTP commands and response codes there are. The rest depends on what you want to do!

http://www.keteracel.com/comframe.php?link=http://www.keteracel.com/community/beej/
0
muskad202Commented:
the basic framwork

in the main loop :
(1) wait for connection (accept())
(2) create a thread to handle this connection, and then go back to (1) to accept next connection

thread for handling a connection :
(1) send() - send welcome string
(2) a loop
    (a) recv() - receive client command
    (b) send() - send response
    (c) optionally, do something else (e.g. open a data connection
    (d) execute loop as long as timeout doesn't pass, or client sends QUIT command
(3) close connection, and terminate thread

muskad202
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
s_univAuthor Commented:
thanks a lot for all ur help. i am basically trying to develop a FTP client to upload/download files from a server machine. The software will have the following features:
1.      User Authentication mode.
2.      Create files and folders.
3.      Upload/Download files in a secure way.
4.      View remote files.
5.      Delete/Rename files.
6.              Multiple file tranfer

I am just trying to be more specific in what I want.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.