Home | Trees | Indices | Help |
|
---|
|
object --+ | TransportHub
Where all of your transports connect to form your glorious new node.
Important you must set the nodeId on this object to something unique for the networks you are joining in order for things to work.
|
|||
Inherited from |
|
|||
|
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. |
||
|
setLogger(logger) Sets a logger object for SpoonRPC to use. |
|
|||
|
_log = <spoon.NullLogger object at 0xa7adc6ec>
|
||
|
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 = None The local node id. |
|
|||
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. |
|
_logNone
|
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.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Mon Nov 27 18:56:25 2006 | http://epydoc.sourceforge.net |