Package DebTorrent :: Module ServerPortHandler
[hide private]
[frames] | no frames]

Module ServerPortHandler

source code

Wrappers to handle multiple torrent downloads.

Classes [hide private]
  SingleRawServer
Simplified Server to handle one of many torrents.
  NewSocketHandler
Read the handshake and hand a new socket connection off to where it belongs.
  MultiHandler
Collection of Servers/Port Handlers for multiple torrents.
Variables [hide private]
logging.Logger logger = logging.getLogger('DebTorrent.ServerPortHandler')
the logger to send all log messages to for this module
mutable default_task_id = []
the default task ID to use for scheduling all unspecified tasks

Imports: cStringIO.StringIO, BTcrypto.Crypto, binascii.b2a_hex, BT1.Encrypter.protocol_name, logging