# the names used by Tribler for the BitTorrent messages
msg_types = {"BT_REQUEST_SEND": "new_request", "BT_REQUEST_RECV": "REQUEST(", "BT_CHOKE": "CHOKE from", "BT_UNCHOKE": "UNCHOKE from",
"BT_HAVE": "HAVE(", "BT_PIECE": "PIECE(", "BT_BITFIELD": "BITFIELD from",
- "BT_CANCEL": "sent cancel", "BT_INTERESTED": "INTERESTED from"}
+ "BT_CANCEL": "sent cancel", "BT_INTERESTED": "INTERESTED"}
msg_db_code = {"BT_CHOKE" : 0, "BT_UNCHOKE": 1, "BT_INTERESTED": 2, "BT_NOT_INTERESTED": 3,
"BT_HAVE" : 4, "BT_BITFIELD": 5, "BT_REQUEST" : 6, "BT_PIECE": 7, "BT_CANCEL": 8}
if result != None:
return result
result = tribler_parse_cancel_msg(line)
+ if result != None:
+ return result
+ result = tribler_parse_interested_msg(line)
return result;
def tribler_parse_status_file(dbw, client_session_id, filename):