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

Module Encrypter

source code

Make encrypted connections to peers.

Classes [hide private]
  IncompleteCounter
Keep track of the number of oustanding incomplete connections.
  Connection
A single, possibly encrypted, connection to a peer.
  _dummy_banlist
A dummy list of banned peers.
  Encoder
The collection of all (possibly encrypted) connections.
Variables [hide private]
logging.Logger logger = logging.getLogger('DebTorrent.BT1.Encrypter')
the logger to send all log messages to for this module
  DEBUG = True
int MAX_INCOMPLETE = 8
the maximum number of incomplete connections to have outstanding before new connections to initiate get queued
string option_pattern = '\x00\x00\x00\x00\x00\x00\x00\x00'
the supported options to send to all peers
IncompleteCounter incompletecounter = <DebTorrent.BT1.Encrypter.IncompleteCounte...
the counter to use to track the number of incomplete connections outstanding

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


Variables Details [hide private]

incompletecounter

the counter to use to track the number of incomplete connections outstanding
Type:
IncompleteCounter
Value:
IncompleteCounter()