Package DebTorrent :: Package BT1 :: Module NatCheck
[hide private]
[frames] | no frames]

Module NatCheck

source code

Check if a peer is unreachable behind a NAT.

Classes [hide private]
  NatCheck
Check if a peer is unreachable behind a NAT.
Variables [hide private]
boolean CHECK_PEER_ID_ENCRYPTED = True
whether to check if connecting peers are encrypted

Imports: cStringIO.StringIO, socket.error, BTcrypto.Crypto, BTcrypto.CRYPTO_OK, __init__.protocol_name, binascii.b2a_hex, struct