Thread: File transfer algorithms

  1. #1
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856

    File transfer algorithms

    In the past I have created a few simplistic programs that incorporated the transfer of files between users. I am thinking about creating another one but thought that before I start it I would ask a more knowledgable network programmer about what specifically would be the best way to transfer large files. Without any other tips I would do as before and create a buffer of some size and transfer blocks of that size. How big should each block be? Should there be additional information such as the expected size of the block with each transmission? I have also created things that transmit the size of the following buffer before each send...

    Any thoughts are appreciated.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Study the FTP protocol for a start....
    http://www.rfc-editor.org/rfc/rfc959.txt
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Writing Problem
    By polskash in forum C Programming
    Replies: 3
    Last Post: 02-13-2009, 10:47 AM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM