file transfer through multiple sockets


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: file transfer through multiple sockets

  1. #1
    Ranjana Guest

    file transfer through multiple sockets


    I want to transfer a single file through multiple socket at a time using threads
    for faster download.How to do it??

  2. #2
    Brad O'Hearne Guest

    Re: file transfer through multiple sockets

    Ranjana, BradO here. Great question! One, in fact, I am working on myself.
    I am not going to be able to give you code here, as it would be lengthy and
    possibly not completely consistent with your app design, but I can give you
    the basic principles.

    1) open multiple sockets.
    2) break your payload into many pieces, assigning a sequence number to each
    piece.
    3) send each piece using a separate thread
    4) receive each piece on the other side.
    5) reconstruct the payload using the sequence number.

    Hope that helps!

    BradO
    --
    Brad O'Hearne
    DevX Section Leader



    "Ranjana" <bedia_ranjana@rediffmail.com> wrote in message
    news:3d8fed22$1@10.1.10.29...
    >
    > I want to transfer a single file through multiple socket at a time using

    threads
    > for faster download.How to do it??




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center