the forums at degreez.net

It is currently Wed Oct 17, 2018 5:11 pm

All times are UTC - 7 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: NAT check
PostPosted: Thu Jan 27, 2005 11:21 am 
While doing some BT client testing I noticed that the NAT check in Bittornado (called when you connect to tracker to stop you lying about IP and see if you have a real IP) writes the BT identifier, the null bytes and the downloadid, but not a peer ID.

ie
Code:
            self.connection.write(chr(len(protocol_name)) + protocol_name +
                (chr(0) * 8) + downloadid)

It then waits for the client to send 68 bytes (ie the above + correct peer ID).

This requires that rather than a listening client waiting for the full handshake before responding it has to respond after a partial message, which requires more TCP traffic.

Its not a major point, but if the NAT test used a peer id (it could be a fake one like all zeros) it would simplify things.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group