Package pyrobot :: Package system :: Module ClientServer :: Class Server
[frames | no frames]

Class Server

BaseServer --+    
             |    
     TCPServer --+
                 |
                Server


Method Summary
  __init__(self, ip_port, handler)
The official - behind the scenes - init...
  init_world(self)
  process_request(self, request, client_address)
We override this funciton to allow multi-threaded server-request processing i.e.
  quit(self)
  serv_forever(self)
  serve(self)
    Inherited from TCPServer
  close_request(self, request)
Called to clean up an individual request.
  fileno(self)
Return socket file number.
  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.

Class Variable Summary
    Inherited from TCPServer
int address_family = 2                                                                     
bool allow_reuse_address = False
int request_queue_size = 5                                                                     
int socket_type = 1                                                                     

Method Details

__init__(self, ip_port, handler)
(Constructor)

The official - behind the scenes - init
don't change anything
add any init code to init_world()
this init will reserve IP_Port and stuff like that
Overrides:
SocketServer.TCPServer.__init__

process_request(self, request, client_address)

We override this funciton to allow multi-threaded server-request processing
i.e. allow multiple connections
Overrides:
SocketServer.BaseServer.process_request

Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 http://epydoc.sf.net