示例#1
0
 def close(self):
     BaseP2PTransport.close(self)
     self._leave()
示例#2
0
 def _on_closed(self):
     BaseP2PTransport.close(self)
示例#3
0
 def __init__(self, client, contacts, peer, peer_guid, transport_manager):
     self._oustanding_sends = 0
     self._peer = peer
     self._peer_guid = peer_guid
     SwitchboardHandler.__init__(self, client, contacts)
     BaseP2PTransport.__init__(self, transport_manager, "switchboard")
示例#4
0
 def __init__(self, client, contacts, peer, peer_guid, transport_manager):
     self._oustanding_sends = 0
     self._peer = peer
     self._peer_guid = peer_guid
     SwitchboardHandler.__init__(self, client, contacts)
     BaseP2PTransport.__init__(self, transport_manager, "switchboard")
示例#5
0
 def close(self):
     BaseP2PTransport.close(self)
     self._leave()
示例#6
0
 def _on_closed(self):
     BaseP2PTransport.close(self)
示例#7
0
 def __init__(self, client, contacts, transport_manager):
     SwitchboardClient.__init__(self, client, contacts)
     BaseP2PTransport.__init__(self, transport_manager, "switchboard")
示例#8
0
 def __init__(self, client, contacts, transport_manager):
     SwitchboardClient.__init__(self, client, contacts)
     BaseP2PTransport.__init__(self, transport_manager, "switchboard")
示例#9
0
 def close(self):
     BaseP2PTransport.close(self)
示例#10
0
 def __init__(self, client, transport_manager):
     BaseP2PTransport.__init__(self, transport_manager, "notification")
     self._protocol = client._protocol
     self._protocol.connect("buddy-notification-received",
             self._on_notification_received)