コード例 #1
0
 def doMessageInMyClass(self, spec, theID):
     # Build an envelope
     envelope = dict()
     envelope['destination'] = spec 
     
     # Build an ID 
     theID = self.buildNodeId(theID, "11111111") 
     
     # Check if it's right
     return ClassLookup.messageInMyClass(theID, envelope)
コード例 #2
0
 def doGetNextHop(self, spec, theID, uniqBits, expectedClassValue, expectedUniqBits):
     # Build an envelope
     envelope = dict()
     envelope['destination'] = spec 
     
     # Build an ID 
     theID = self.buildNodeId(theID, uniqBits) 
     
     nextID = ClassLookup.getNextHop(theID, envelope)
     
     return str(nextID)