Ping and response::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"request_type": "ping",
"request": {
"id": "abcdefghij0123456789"
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"response": {
"id": "mnopqrstuvwxyz123456"
Find_node and response::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"client_version": "UT01",
"request_type": "find_node",
"target": "mnopqrstuvwxyz123456"
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"client_version": "UT01",
"response": {
Get_peers and response with values param::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"request_type": "get_peers",
"request": {
"info_hash": "mnopqrstuvwxyz123456"
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"client_version": "UT12",
"response": {
Get_peers and response with nodes param::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"request_type": "get_peers",
"request": {
"info_hash": "mnopqrstuvwxyz123456"
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"response": {
"id": "abcdefghij0123456789",
Announce_peer and response::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"request_type": "announce_peer",
"request": {
"port": 6881
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"response": {
"id": "mnopqrstuvwxyz123456"
Announce_peer with implied_port param and response::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"request_type": "announce_peer",
"request": {
"port": 6881
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"response": {
"id": "mnopqrstuvwxyz123456"
Sample error responses::
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"error": {
"num": 201,
"msg": "A Generic Error Ocurred"
}
}
- "bittorrent-dht": {
+ "bittorrent_dht": {
"transaction_id": "aa",
"error": {
"num": 203,