| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
TransportHub
|
|||
|
Inherited from |
|||
|
|||
|
setLogger(logger) Sets a logger object for SpoonRPC to use. |
||
|
addTransport(t) Must be called after a transport is initialized to initiate the spoonRPC protocol. |
||
|
removeTransport(t) Must be called after a transport has been made inactive. |
||
|
|||
|
activeTransports = []A simple list of the transports that are currently active |
||
|
links = {}A dict, keys are the node id of the directly connected neighbor and the values are the associated transport |
||
int
|
nodeId = NoneThe local node id. |
||
|
_log = NullLogger()
|
||
|
|||
|
Inherited from |
|||
|
|||
Sets a logger object for SpoonRPC to use. This can be a python logger object, or just anything that supports that general protocol. It defaults to NullLogger which does nothing with the messages.
|
|
|
|
|||
activeTransportsA simple list of the transports that are currently active
|
linksA dict, keys are the node id of the directly connected neighbor and the values are the associated transport
|
nodeIdThe local node id. This must be set to the node's integer id before the spoon transport hub is started. The nodeId is just a network wide, unique int. How this is determined is left as an excercise for the implementation. In most cases, it should probably be something that is constant for the host/program between instances.
|
_logNone
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0alpha3 on Mon Nov 27 17:06:03 2006 | http://epydoc.sourceforge.net |