This class handles LMTYPE_NETWORK messages and LMTYPE_NETWORK_PROTO
messages. LMTYPE_NETWORK_PROTO is handled as a routing update, and
LMTYPE_NETWORK will be handled as network traffic to be dealt with or
routed.
If there is a SingletonMessaging instance already created (e.g.
through the use of the acceptMsg decorator) and messaging is None
|
__init__(self,
hub,
messaging=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
|
addTransport(self,
t,
nodeId)
Handles the routing protocol initilization.
|
|
removeTransport(self,
t)
Removes the transport from the network.
|
|
handleUpdate(self,
t,
update,
localUpdate=None)
Handles a routing table update, builds the update message and
sends it out to all except the src of the update.
|
|
handleLinkMessage(self,
t,
lm)
Called by the SpoonTransportThread when a link message has been
received for one of our LMTYPEs.
|
|
handleNetworkTraffic(self,
t,
obj)
|
|
sendNetMsg(self,
dst,
mtype,
obj)
Sends a network message to the destination specified.
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|