File transfer algorithms

This is a discussion on File transfer algorithms within the Networking/Device Communication forums, part of the General Programming Boards category; In the past I have created a few simplistic programs that incorporated the transfer of files between users. I am ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 09:47 AM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09: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, 01:58 AM

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