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

Class CommunicationClientBase

source code

CommClientMixIn --+
                  |
                 CommunicationClientBase
Known Subclasses:
CommunicationClient

A base class to any CommunicationServer client. 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
 
close(self)
Close the client
source code
 
__del__(self)
called for the garbage collection system.
source code

Inherited from CommClientMixIn: __getitem__, byeRequest, callMethod, callMethodGuess, delObject, get, getAttr, get_request_local_server, getconn, getobj, handleRequest, putconn, 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

__del__(self)
(Destructor)

source code 
called for the garbage collection system. Close the object if it is not closed yet.