torrent/bencode
Matt Joiner ff835db955 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.
2015-12-07 03:28:28 +11:00
..
_testdata Add first bits of "torrent" library (.torrent file manipulation). 2012-06-28 02:26:56 +06:00
README Initial commit. 2012-06-20 19:21:32 +06:00
api.go Revert "bencode: Trailing bytes on Unmarshal is an error" 2015-08-23 19:10:22 +10:00
both_test.go Fix bugs, implement missing bits. Made a mess, can't describe properly. 2012-06-28 02:21:26 +06:00
decode.go bencode: Improve unknown value type error 2015-11-03 23:21:10 +11:00
decode_test.go bencode: When decoding a dict, if the final key is missing its value, don't treat that as an error. 2015-10-02 00:13:43 +10:00
encode.go Actually fix #41 properly; and several big changes 2015-12-07 03:28:28 +11:00
encode_test.go bencode: Encoding nil interfaces are an error except at data root 2015-10-23 12:35:38 +11:00
fuzz.go bencode: Fuzz 2015-08-23 15:59:49 +10:00
tags.go Initial commit. 2012-06-20 19:21:32 +06:00

README

Bencode encoding/decoding sub package. Uses similar API design to Go's json package.