Esempio n. 1
0
    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
Esempio n. 2
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
Esempio n. 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