Computing.Net > Forums > Programming > Simple FTP program written in C.

Simple FTP program written in C.

Reply to Message Icon

Original Message
Name: olly
Date: July 13, 2003 at 00:38:02 Pacific
Subject: Simple FTP program written in C.
OS: linux/windws
CPU/Ram: N/A
Comment:

Hello im trying to build a Simple FTP program written in C.

So far I have made a text file FTP program that prompts the user for the name of the file, writes that name as a character string to a buffer, then writes from the buffer to the socket.

Opens a text file for reading, reads the text from that file to a buffer then writes from the buffer to the socket.

The recieving program reads the filename from the socket, opens a new file of that name, reads the contents of the file from the socket and writes them to a new file.

for this simple text ftp im using:

FILE *fp;
fopen
fclose 
read
write
fputs
fgets


However I would like to expand my FTP program to read binary files and transfer them. I have no idea how to do that though.

Please help me :-)



Report Offensive Message For Removal


Response Number 1
Name: Sord
Date: July 14, 2003 at 21:15:21 Pacific
Reply: (edit)

That is a bit complicated to just tell you but if you
download the source for wget, curl, or ncftp it may
help you. Good luck.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Simple FTP program written in C. 

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge