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

Module RawServer

source code

Manage connections to and tasks to be run on the server.

Classes [hide private]
  RawServer
Manage connections and tasks like a server.
Functions [hide private]
 
autodetect_ipv6()
Detect whether IPv6 connections are supported (not used).
source code
 
autodetect_socket_style()
Determine if an IPv6 server socket will also field IPv4 connections.
source code
Variables [hide private]
logging.Logger logger = logging.getLogger('DebTorrent.RawServer')
the logger to send all log messages to for this module
int READSIZE = 32768
the maximum amount of data to read from any sockets

Imports: bisect.insort, SocketHandler.SocketHandler, socket, cStringIO.StringIO, traceback.print_exc, select.error, threading.Thread, threading.Event, time.sleep, clock.clock, signal.signal, signal.SIGINT, signal.SIG_DFL, sys, logging