]> Sergey Matveev's repositories - btrtrc.git/commit
Actually fix #41 properly; and several big changes
authorMatt Joiner <anacrolix@gmail.com>
Sun, 6 Dec 2015 16:28:28 +0000 (03:28 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 6 Dec 2015 16:28:28 +0000 (03:28 +1100)
commitff835db95500f3353d99751d807cadd7ae77d058
tree80d9f95670074ead18429f92a72554a83350ab02
parentb86253c80d6b1aa965f90b46e749184a5d13a52a
Actually fix #41 properly; and several big changes

bencode:
 * Handle omitempty on non-trivial types.
cmd/dht-ping:
 * Handle timeouts in ping transactions.
dht:
 * Propagate failed transaction responses properly.
 * Msg related tests are moved into their own file.
 * In some places, IPs in binary form are shorted to 4 bytes if IPv4.
bencode/encode.go
cmd/dht-ping/main.go
dht/announce.go
dht/dht_test.go
dht/msg.go
dht/msg_test.go [new file with mode: 0644]
dht/nodeinfo.go
dht/server.go
dht/transaction.go