common.tcpserverthread (version 0.1, 9 April 2003)
index
e:\bothans\common\tcpserverthread.py

A TCPServer started in its own thread

 
Modules
            
SocketServer
common
logging
select
sys
threading
 
Classes
            
exceptions.Exception
TimeToQuit
threading.Thread(threading._Verbose)
TCPServerThread
SocketServer.ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer)
ResponsiveThreadingTCPServer
 
class ResponsiveThreadingTCPServer(SocketServer.ThreadingTCPServer)
       
  
Method resolution order:
ResponsiveThreadingTCPServer
SocketServer.ThreadingTCPServer
SocketServer.ThreadingMixIn
SocketServer.TCPServer
SocketServer.BaseServer

Methods defined here:
_ResponsiveThreadingTCPServer__parseArgs = __parseArgs(self)
Parse arguments in the hash passed along by the TCPServerThread
This allow request handlers to get some shared vars -- david
__init__(self, server_address, RequestHandlerClass, lock, timeout=5.0, args=None)
get_request(self)
serve_forever(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.tcpserverthread'

Methods inherited from SocketServer.ThreadingMixIn:
process_request(self, request, client_address)
Start a new thread to process the request.
process_request_thread(self, request, client_address)
Same as in BaseServer but as a thread.
 
In addition, exception handling is done here.

Methods inherited from SocketServer.TCPServer:
close_request(self, request)
Called to clean up an individual request.
fileno(self)
Return socket file number.
 
Interface required by select().
server_activate(self)
Called by constructor to activate the server.
 
May be overridden.
server_bind(self)
Called by constructor to bind the socket.
 
May be overridden.
server_close(self)
Called to clean-up the server.
 
May be overridden.

Data and non-method functions inherited from SocketServer.TCPServer:
address_family = 2
allow_reuse_address = 0
request_queue_size = 5
socket_type = 1

Methods inherited from SocketServer.BaseServer:
finish_request(self, request, client_address)
Finish one request by instantiating RequestHandlerClass.
handle_error(self, request, client_address)
Handle an error gracefully.  May be overridden.
 
The default is to print a traceback and continue.
handle_request(self)
Handle one request, possibly blocking.
verify_request(self, request, client_address)
Verify the request.  May be overridden.
 
Return true if we should proceed with this request.
 
class TCPServerThread(threading.Thread)
      Creates a new socket. The standard behaviour is to create a
thread on each new connection
 
  
Method resolution order:
TCPServerThread
threading.Thread
threading._Verbose

Methods defined here:
__init__(self, server_address, port, HandlerClass, args=None)
getsocket(self)
run(self)
stop(self)

Data and non-method functions defined here:
__doc__ = 'Creates a new socket. The standard behaviour is to create a\n thread on each new connection'
__module__ = 'common.tcpserverthread'

Methods inherited from threading.Thread:
_Thread__bootstrap = __bootstrap(self)
_Thread__delete = __delete(self)
_Thread__stop = __stop(self)
__repr__(self)
_set_daemon(self)
getName(self)
isAlive(self)
isDaemon(self)
join(self, timeout=None)
setDaemon(self, daemonic)
setName(self, name)
start(self)

Data and non-method functions inherited from threading.Thread:
_Thread__initialized = 0

Methods inherited from threading._Verbose:
_note(self, format, *args)
 
class TimeToQuit(exceptions.Exception)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'common.tcpserverthread'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
Data
             __all__ = ['TCPServerThread']
__author__ = 'Michel Rasschaert <mrasschaert@neocles.com>'
__date__ = '9 April 2003'
__file__ = r'e:\bothans\common\tcpserverthread.pyc'
__license__ = 'This file is part of Bothans\n\n Bothans is fre...lace, Suite 330, Boston, MA 02111-1307 USA\n '
__name__ = 'common.tcpserverthread'
__status__ = 'alpha'
__version__ = '0.1'
log = <logging.Logger instance at 0x00815490>
 
Author
             Michel Rasschaert <mrasschaert@neocles.com>