コード例 #1
0
ファイル: BTProtocol.py プロジェクト: CyberTobi/abtorrent
    def handle_handshake(self, protocol, reserved, info_hash, peer_id):
        print '-->> handshake ', identify_client(peer_id)

        self.peer_protocol = protocol
        self.peer_reserved = reserved
        self.peer_info_hash = info_hash
        self.peer_id = peer_id
コード例 #2
0
ファイル: BTProtocol.py プロジェクト: jakesyl/AutonomoTorrent
 def handle_handshake(self, protocol, reserved, info_hash, peer_id):
     log.msg('Connected to client ID: {0} v{1}'.format(
         *identify_client(peer_id)))
     self.peer_protocol = protocol
     self.peer_reserved = reserved
     self.peer_info_hash = info_hash
     self.peer_id = peer_id
コード例 #3
0
 def handle_handshake(self, protocol, reserved, info_hash, peer_id):
     log.msg('Connected to client ID: {0} v{1}'.format(*identify_client(peer_id)))
     self.peer_protocol = protocol
     self.peer_reserved = reserved
     self.peer_info_hash = info_hash
     self.peer_id = peer_id