ftp

This is a discussion on ftp within the C Programming forums, part of the General Programming Boards category; how i can access FTP server in C ?? somebody was used something like this before ??...

  1. #1
    Registered User scrapedbr's Avatar
    Join Date
    May 2003
    Posts
    19

    ftp

    how i can access FTP server in C ??
    somebody was used something like this before ??
    cscience.org
    gobolinux.org
    Gobolinux user: 00101100

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,821
    Quick answer
    Code:
    system("ftp path.to.site.com
    Long answer
    Goto RFC Editor and find the relevant RFCs which describe the FTP protocol.
    The use the network API calls (send, recv etc) to connect to a site and engage in a dialog with the FTP server at the other end, as outlined in the RFCs.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User scrapedbr's Avatar
    Join Date
    May 2003
    Posts
    19
    I found " ftplib-3.1 ". I think i have the anwers to my questions. Anyway, thanks.


    (RFC have the anwers too, but is too more complicated) =)
    cscience.org
    gobolinux.org
    Gobolinux user: 00101100

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Actually RFC is the answer. It draws out what the standard is at this time. It is what the developers of ftplib-3.1 used.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,821
    Heh - medium answer
    Find a library which does some of the hard work for you, and gives you an API with things like fetch_file()
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Yes but a lot of times the medium answer is the best answer

    I could try to write my own code for multithreading...or I could use pthreads.

    I'd read the RFC enough to get an understanding of what is happening but use the library to safe your hair

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 10:54 AM
  2. FTP problems...
    By gcn_zelda in forum Tech Board
    Replies: 9
    Last Post: 08-04-2004, 12:05 AM
  3. FTP and Ident Server :: Winsock
    By kuphryn in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-13-2004, 08:16 PM
  4. [C++] FTP client problem (winsock)
    By Niekie in forum Networking/Device Communication
    Replies: 2
    Last Post: 10-19-2003, 10:23 AM
  5. FTP Server :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-03-2002, 08:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21