Re: [Libbt-devel] added header files that will be installed
Brought to you by:
ksmathers
From: Tyler M. <ty...@Ac...> - 2005-02-11 21:47:52
|
Elliott Mitchell <eh...@m5...> wrote: > > 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. > It is standard practice for BT clients to start at 6881 and go up as > high as 6889. This is semi-silly, but it does make it easier to implement > MitM caches if so desired. I vote for *NOT* using those ports by default. Bram Cohen has said that it was a bad idea to begin with, azureus and other clients allocate in the IANA range now, and some ISPs have begun filtering or severely throttling ports in the "standard" BT range. That said, I think it would be nice to give the application the chance to decide what port it wants to listen on, and maybe even pass it's own socket fd to the library and say "here, use this"... but if it doesnt take that chance, proceed with allocating a random port either by not specifying one to bind, or by picking one in the IANA range that's available. - Tyler |