Trees | Index | Help |
|
---|
Module spiroclient :: Class SpiroClient |
|
Method Summary | |
---|---|
Creates the spiro client | |
performs a getattr on some remote thing | |
__repr__(self)
| |
__setattr__(self,
attr,
val)
| |
__str__(self)
| |
Registers a callable as a Spiro callback and wraps it in a callback wrapper | |
Allocates a unique id | |
Executes a callback, and sends back a reply, within separate thread | |
Fetch the next reply thing from server | |
_log(self,
level,
msg,
nprev)
| |
_logException(self,
level,
msg)
| |
Guaranteed to read n bytes from server, or raise exception | |
Reads a full line from server socket and returns it (without trailing newline) | |
Thread which receives incoming replies and callbacks. | |
Guaranteed send of all buffer, or exception | |
_sendCommand(self,
cmdId,
cacheId,
cmd,
attr,
*args,
**kw)
| |
Executes on the server |
Class Variable Summary | |
---|---|
list |
_badAttributes = ['__members__', '__methods__', '__getst...
|
str |
_host = '127.0.0.1'
|
list |
_localattributes = ['_client', '_name', '_objPath', '_ca...
|
int |
_port = 9091 |
int |
_threaded = 1 |
int |
_verbosity = 2 |
Method Details |
---|
__init__(self,
sessName,
**kw)
|
__getattr__(self,
attr)
performs a getattr on some remote thing
|
callback(self, func)Registers a callable as a Spiro callback and wraps it in a callback wrapper |
_allocId(self)Allocates a unique id |
_callbackThread(self, msg)Executes a callback, and sends back a reply, within separate thread |
_getReply(self)Fetch the next reply thing from server |
_readbytes(self, n)Guaranteed to read n bytes from server, or raise exception |
_readline(self)Reads a full line from server socket and returns it (without trailing newline) |
_rxThread(self)Thread which receives incoming replies and callbacks. In the case of replies, files them away in self._replyQueues |
_sendbytes(self, buf)Guaranteed send of all buffer, or exception |
_serverCommand(self, cacheId, cmd, attr, *args, **kw)Executes on the server |
Class Variable Details |
---|
_badAttributes
|
_host
|
_localattributes
|
_port
|
_threaded
|
_verbosity
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sun Apr 11 13:37:10 2004 | http://epydoc.sf.net |