Beispiel #1
0
 def getInviteForPeer(self, key):
   print('getInviteForPeer('+str(key)+')')
   try:
     map=self.state['invites']
     value=map[key]
     trackback=TrackbackClient(self.router, self.addr)
     trackback.putInviteForPeer(key, value)
   except Exception as e:
     print('exception: '+str(e))
     pass
Beispiel #2
0
 def getPeerForEndpoint(self, key):
   print('getPeerForEndpoint('+str(key)+')')
   try:
     map=self.state['endpoints']
     value=map[key]
     trackback=TrackbackClient(self.router, self.addr)
     trackback.putPeerForEndpoint(key, value)
   except Exception as e:
     print('exception: '+str(e))
     pass
Beispiel #3
0
 def getInviteForPeer(self, key):
     print('getInviteForPeer(' + str(key) + ')')
     try:
         map = self.state['invites']
         value = map[key]
         trackback = TrackbackClient(self.router, self.addr)
         trackback.putInviteForPeer(key, value)
     except Exception as e:
         print('exception: ' + str(e))
         pass
Beispiel #4
0
 def getPeerForEndpoint(self, key):
     print('getPeerForEndpoint(' + str(key) + ')')
     try:
         map = self.state['endpoints']
         value = map[key]
         trackback = TrackbackClient(self.router, self.addr)
         trackback.putPeerForEndpoint(key, value)
     except Exception as e:
         print('exception: ' + str(e))
         pass
Beispiel #5
0
 def getTrackerInvite(self):
   invite=self.router.generateInvite()
   trackback=TrackbackClient(self.router, self.addr)
   trackback.putTrackerInvite(encode(invite.message))
Beispiel #6
0
 def getTrackerInvite(self):
     invite = self.router.generateInvite()
     trackback = TrackbackClient(self.router, self.addr)
     trackback.putTrackerInvite(encode(invite.message))