Base class for various socket-based server classes.
Defaults to synchronous IP stream (i.e., TCP).
Methods for the caller:
Method Summary |
|
__init__ (self,
server_address,
RequestHandlerClass,
channel_mode,
delegation_mode,
tcpAttr)
Constructor. |
|
close_request (self,
request)
Called to clean up an individual request. |
|
fileno (self)
Return socket file number. |
|
get_delegated_credential (self)
Accessor for the server's delgated credentials. |
|
get_request (self)
Get the request and client address from the socket. |
|
server_activate (self)
Called by constructor to activate the server. |
|
server_bind (self)
Called by constructor to bind the socket. |
|
server_close (self)
Called to clean-up the server. |
Inherited from BaseServer |
|
finish_request (self,
request,
client_address)
Finish one request by instantiating RequestHandlerClass. |
|
handle_error (self,
request,
client_address)
Handle an error gracefully. |
|
handle_request (self)
Handle one request, possibly blocking. |
|
process_request (self,
request,
client_address)
Call finish_request. |
|
serve_forever (self)
Handle one request at a time until doomsday. |
|
verify_request (self,
request,
client_address)
Verify the request. |