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??
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center