Trees | Index | Help |
---|
Package SPyRO :: Module SPyRO :: Class CommunicationClientThreaded |
|
CommClientMixIn
--+
|
CommunicationClientThreaded
Method Summary | |
---|---|
Create the threaded client. | |
__del__(self)
| |
To pickle functions | |
close(self)
| |
Get a communication object | |
Return a communication Object | |
Inherited from CommClientMixIn | |
Get a local representation of the remote object with ID |name|. | |
Send a bye request | |
Call a method. | |
Call a method, Guessing the best type to send arguments |objname| The object's name that has the method |attrname| The name of the object |args| The positional arguments of the call |kwargs| The keyword arguments of the call |rettype| The return type of the result |local_server| the local server to send arguments by reference |auth| The authorizing information to access the object |extra| Additional information to be added to the message | |
Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue. | |
Get a local representation of the remote object with ID |name|. | |
Return a local_server tuple to make the request | |
Get an attribute |attrname| of the object |objname| with the method to send the object |rettype|, the default is SendByValue |auth| The authorizing information to access the object | |
Get a local representation of the remote object with ID |name| | |
Common code to getAttr, setAttr and callMethod | |
Set the attribute |attrname| to |value| in the object |objname|. |
Method Details |
---|
__init__(self,
serv_addr,
path,
local_server=None,
poolSize=0,
socket_error_handler=<function default_socket_error_handler at 0xb794517c>,
compress=False,
usingssl=False)
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
|
__getstate__(self)To pickle functions |
getconn(self)Get a communication object
|
putconn(self, conn)Return a communication Object
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Oct 14 11:50:51 2006 | http://epydoc.sf.net |