Re: [Libbt-devel] added header files that will be installed
Brought to you by:
ksmathers
From: Elliott M. <eh...@m5...> - 2005-02-11 21:38:32
|
>From: Peter Stuge <stu...@cd...> > 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. 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. Failing that, taking whichever port the OS gives to you is standard practice. This typically starts at 1024 and goes upwards as various programs use temporary ports. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \ ( | EH...@gr... PGP 8881EF59 | ) / \_ \ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ \___\_|_/82 04 A1 3C C7 B1 37 2A*E3 6E 84 DA 97 4C 40 E6\_|_/___/ |