Re: [7] [Libbt-devel] added header files that will be installed
Brought to you by:
ksmathers
From: Kevin S. <ke...@an...> - 2005-03-09 07:33:05
|
Peter Stuge wrote: >On Fri, Feb 11, 2005 at 09:09:28AM +0100, Alien wrote: > > >>bt.h also includes bttypes.h so it's easier not to make mistakes >> >> > >>From btTorrent: > > int listenport; /* is this required??? */ > >No, listenport is not required, if we're going to do the networking >in libbt I strongly suggest that we only use a single port per >application, and by default one in the dynamic port range as defined >by IANA, 49152 through 65536. Start from the bottom and try >allocating upwards. > > > People who operate firewalls generally prefer to know what it is that they are opening up a hole for. Follow the protocol spec, use the specified port range. >And most importantly a dynamic port fits the application. This is not >a server that peers will try to connect blindly to as a result of a >user command, instead peer lists come from the tracker and so ports >do not matter. > > > Bram has a lot of experience with actual deployments. Pretend that he knows what he is doing. >--8<-- docs/protocol.txt, about communication between peers >Next comes the 20 byte sha1 hash of the bencoded form of the 'info' >value from the metainfo file. (This is the same value which is >announced as info_hash to the tracker, only here it's raw instead of >quoted here). If both sides don't send the same value, they sever the >connection. The one possible exception is if a downloader wants to do >multiple downloads over a single port, they may wait for incoming >connections to give a download hash first, and respond with the same >one if it's in their list. >-->8-- > >This sounds good to me. > > >//Peter > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Libbt-devel mailing list >Lib...@li... >https://lists.sourceforge.net/lists/listinfo/libbt-devel > > |