DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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??




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links