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??
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
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!
DevX Section Leader
"Ranjana" <email@example.com> wrote in message
> I want to transfer a single file through multiple socket at a time using
> for faster download.How to do it??
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