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

Class CommunicationClientThreaded

source code

CommClientMixIn --+
                  |
                 CommunicationClientThreaded
Known Subclasses:
TCallClient

The thread safe CommunicationClient. It uses several CommunicationClient to manage threading

Instance Methods [hide private]
 
__init__(self, serv_addr, path, local_server=None, poolSize=0, socket_error_handler=<function default_socket_error_handler at 0x85a025c>, compress=True, usingssl=True)
Create the threaded 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
 
__del__(self) source code
 
close(self) source code

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, poolSize=0, socket_error_handler=<function default_socket_error_handler at 0x85a025c>, compress=True, usingssl=True)
(Constructor)

source code 
Create the threaded client. |serv_addr| The server address (host,port). |path| The path where is listening the remote host, it has the protocol using query_string '?' notation. |poolSize| The maximum size of the pool of CommunicationClient objects |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 socket error handler. |compress| If True it uses gzip compression to content |usingssl| If True it uses the https protocol to perform connections

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)