Package SPyRO :: Module SPyRO :: Class CommunicationServer
[show private | hide private]
[frames | no frames]

Class CommunicationServer

CommunicationServerBase --+
                          |
                         CommunicationServer


Starts a standalone SPyRO Server
Method Summary
  __init__(self, address, location, priorities, defaultFormat, objectpool, protocolServer, **httpoptions)
|address| The address where the Server is listening |location| Location or path in the web server |priorities| Priorities of the protocols |defaultFormat| The default message format where none is specified |protocolServer| The class of the Procotol used in the Server side, by default ProtocolHTTPShared is Used
  close(self)
Close server
  handle_request(self)
  request_handler(self, httpreq, environment)
SPyRO Handler
  serve_forever(self)
    Inherited from CommunicationServerBase
  __getstate__(self)
To pickle functions
  __setitem__(self, k, v)
Register an object.
  delconn(self, conn)
Removes a client connection
  regconn(self, conn)
Register a client connection
  set(self, k, v)
Register an object |v| with the ID |k|.

Method Details

__init__(self, address, location='/SPyRO?PICKLE2', priorities=None, defaultFormat=None, objectpool=None, protocolServer=<class SPyRO.SPyRO.ProtocolHTTPShared at 0xb79312cc>, **httpoptions)
(Constructor)

|address| The address where the Server is listening |location| Location or path in the web server |priorities| Priorities of the protocols |defaultFormat| The default message format where none is specified |protocolServer| The class of the Procotol used in the Server side, by default ProtocolHTTPShared is Used
Overrides:
SPyRO.SPyRO.CommunicationServerBase.__init__

close(self)

Close server
Overrides:
SPyRO.SPyRO.CommunicationServerBase.close (inherited documentation)

request_handler(self, httpreq, environment)

SPyRO Handler

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net