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

Class CommunicationServer

source code

BasicServer --+
              |
             CommunicationServer

Starts a standalone SPyRO Server

Instance Methods [hide private]
 
__init__(self, address, location='/SPyRO?XMLRPC', priorities=None, defaultFormat=None, objectpool=None, protocolServer=<class SPyRO.SPyRO.ProtocolHTTPShared at 0x852da1c>, overture=<function defaultoverture at 0x85326bc>, **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 when None is specified |overture| A function to be called before anything in the connection process See PeerConnection.solve_request (the overture argument) to more information If it's None, the overture will be skipped.
source code
 
serve_forever(self) source code
 
request_handler(self, httpreq, environment)
SPyRO Handler
source code
 
close(self)
Close server
source code

Inherited from BasicServer: __getstate__, __setitem__, can_call, can_del, can_follow_objname, can_get, can_register, can_set, delconn, getargument, getcomm, handle, handle_request, handlecall, regconn, set

Inherited from BasicServer (private): _handle_request

Method Details [hide private]

__init__(self, address, location='/SPyRO?XMLRPC', priorities=None, defaultFormat=None, objectpool=None, protocolServer=<class SPyRO.SPyRO.ProtocolHTTPShared at 0x852da1c>, overture=<function defaultoverture at 0x85326bc>, **httpoptions)
(Constructor)

source code 
|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 when None is specified |overture| A function to be called before anything in the connection process See PeerConnection.solve_request (the overture argument) to more information If it's None, the overture will be skipped. |protocolServer| The class of the Procotol used in the Server side, by default ProtocolHTTPShared is Used
Overrides: BasicServer.__init__

close(self)

source code 
Close server
Overrides: BasicServer.close
(inherited documentation)