Thread: FTP program

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    30

    FTP program

    Simple question here. Im a fairly experienced programmer. But ive never programed with sockets and never programed for linux. Im running fedora 9 on another computer of mine and I have a simple socket program written with a server and client connecting to each other and sending a simple message from server to client each time the client connects to the server. I totally understand all the code, but my big question is. How would you transfer files not just simple messages? I looked through the API's and there's only simple read() write() functions for sockets. Does this mean that you have to somehow open a file on the server read it into an array and have the client read the array and put the data into a file onto the clients machine? Im just looking for a hint in the right direction I don't need anyone to write the code, but for some reason it seems that transferring files through sockets is a rare topic and more people talk about sending simple messages. Any help is appreciated. Im programming in the C language.
    Last edited by jakemott; 09-29-2008 at 04:41 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  2. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  3. How can I run a small ftp script from C program
    By bazeemuddin in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-01-2003, 05:04 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM