[p2p-hackers] Control network file transfer rate
Greg Bildson
gbildson at limepeer.com
Thu Feb 23 16:28:21 UTC 2006
You might want to look at our BandwidthThrottle, ThrottledOutputStream
classes and the use of BandwidthThrottle elsewhere (HTTPDownloader,
NormalUploadState, etc). We built off of some earlier FreeNet techniques.
There is some added complexity along the way but I believe we handle things
elegantly overall.
http://tinyurl.com/l86ch
http://tinyurl.com/qluxj
...
Thanks
-greg
> -----Original Message-----
> From: p2p-hackers-bounces at zgp.org [mailto:p2p-hackers-bounces at zgp.org]On
> Behalf Of Yifei Zeng
> Sent: Thursday, February 23, 2006 4:32 AM
> To: p2p-hackers at zgp.org
> Subject: [p2p-hackers] Control network file transfer rate
>
>
> Hi all.
>
> I am writing a peer-to-peer file sharing application in Java.
>
> Could someone help me with how to control the download/upload rate of
> the file transfer (practically) through internet?
>
> just like the BitTorrent clients (Bitcomet, Azureus), most of them
> have the function for the user to set the download / upload rate limit.
>
> How should I do in java to achieve this? Can someone please give me
> some ideas or hints?
>
> I am currently using non-blocking IO and socket and for each file
> transfer between two peers there is a non-blocking socket associated
> with it. And my application only has single thread to achieve all
> socket read / write request.
>
> Thanks
>
> Yifei
> _______________________________________________
> p2p-hackers mailing list
> p2p-hackers at zgp.org
> http://zgp.org/mailman/listinfo/p2p-hackers
> _______________________________________________
> Here is a web page listing P2P Conferences:
> http://www.neurogrid.net/twiki/bin/view/Main/PeerToPeerConferences
More information about the P2p-hackers
mailing list