Changeset 84

Show
Ignore:
Timestamp:
12/05/09 20:59:07 (4 years ago)
Author:
vinicius
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • donkeysurvey/Message.py

    r83 r84  
    5050    # ClientInfo 
    5151    def decode_msg_15(self, raw_data): 
    52         session = Session() 
     52        #session = Session() 
    5353        client_id = self.decode_int("l", raw_data, 0) 
    5454        client_netid = self.decode_int("l", raw_data, 4) 
     
    6161            client_hash = struct.unpack_from("<17s", raw_data, 11 + client_name_len) 
    6262            logging.debug("--- ClientName: %s (%d) | ClientHash: %s", client_name, client_name_len, str.upper(binascii.hexlify("".join(client_hash)))) 
    63             session.clientName = client_name 
     63            #session.clientName = client_name 
    6464            offset = 28 + client_name_len; 
    6565        ip0 = self.decode_int("B", raw_data, offset) 
     
    7070        port = self.decode_int("H", raw_data, offset + 5) 
    7171        logging.debug("--- IP: %d.%d.%d.%d | geoip: %d | Port: %d ", ip0, ip1, ip2, ip3, geoip, port) 
    72         session.clientIP = ip0+"."+ip1+"."+ip2+"."+ip3+"."+ip4  
     72        #session.clientIP = ip0+"."+ip1+"."+ip2+"."+ip3+"."+ip4 
     73        #session.clientPort  
    7374        offset += 7 
    7475        connection_state = self.decode_int("B", raw_data, offset)