-
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
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
Forum Rules
|
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
|
Bookmarks