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

Class CommunicationClient

source code

    CommClientMixIn --+    
                      |    
CommunicationClientBase --+
                          |
                         CommunicationClient
Known Subclasses:
CallClient

A Client to CommunicationServer. Represents a communication channel with the server

Instance Methods [hide private]
 
__init__(self, serv_addr, path, local_server=None, socket_error_handler=<function default_socket_error_handler at 0x85a025c>, compress=True, usingssl=True)
Initialize client.
source code
 
__getstate__(self)
To pickle functions
source code
 
getconn(self)
Get a communication object
source code
 
putconn(self, conn)
Return a communication Object
source code

Inherited from CommunicationClientBase: __del__, close

Inherited from CommClientMixIn: __getitem__, byeRequest, callMethod, callMethodGuess, delObject, get, getAttr, get_request_local_server, getobj, handleRequest, setAttr

Method Details [hide private]

__init__(self, serv_addr, path, local_server=None, socket_error_handler=<function default_socket_error_handler at 0x85a025c>, compress=True, usingssl=True)
(Constructor)

source code 
Initialize client.
|serv_addr| The remote server address (host,port)
|path| Location of the server (to apache or another general purpose
       http servers). It describes the encoder protocol using the
       query_string '?' notation.
|local_server| If is set to a CommunicationServer, when a method is
       called the arguments are passed by reference and the remote
       server
       will try to connect to this server (port and location).
       The IP address is the used to contact the remote server.
|socket_error_handler| The error handler, called when an exception
    is arised in the connection, parsing, or interpreting messages.
|compress| Compress the messages between peers
|usingssl| If True, every connection is performed with the https protocol

Overrides: CommunicationClientBase.__init__
(inherited documentation)

__getstate__(self)

source code 
To pickle functions
Overrides: CommunicationClientBase.__getstate__

getconn(self)

source code 
Get a communication object
Overrides: CommClientMixIn.getconn
(inherited documentation)

putconn(self, conn)

source code 
Return a communication Object
Overrides: CommClientMixIn.putconn
(inherited documentation)