Commit graph

25 commits

Author SHA1 Message Date
Joakim Frostegård
c1d08bc6d5 bittorrent_udp: add short doc comment 2020-05-17 12:08:53 +02:00
Joakim Frostegård
352f571c42 Decide to use Apache 2.0 license, add file and update Cargo.toml's 2020-04-20 16:54:43 +02:00
Joakim Frostegård
9bf17b0ab4 bittorrent_udp: response_to_bytes: return Result<(), io:Error> 2020-04-11 15:03:50 +02:00
Joakim Frostegård
c45fa80391 bittorrent_udp: simplify quickcheck test syntax, keeping functionality 2020-04-11 14:57:08 +02:00
Joakim Frostegård
02b63feef7 bittorrent_udp: add quickcheck tests for request byte conversion 2020-04-11 14:53:36 +02:00
Joakim Frostegård
554895a9df bittorrent_udp: implement quickcheck::Arbitrary for request types 2020-04-11 14:43:58 +02:00
Joakim Frostegård
b32046e768 bittorrent_udp: improve code formatting and imports 2020-04-10 15:20:27 +02:00
Joakim Frostegård
fe85901021 bittorrent_udp: add RequestParseError; remove InvalidRequest; other fixes 2020-04-10 15:16:20 +02:00
Joakim Frostegård
f80646e3a8 bittorrent_udp: add From<> for requests and responses into their enums 2020-04-10 11:19:29 +02:00
Joakim Frostegård
44b0489521 bittorrent_udp: response_to_bytes: simplify code for ipv6 announce 2020-04-10 10:10:33 +02:00
Joakim Frostegård
c964f05e84 bittorrent_udp: add quickcheck tests for response byte conversion 2020-04-10 03:30:53 +02:00
Joakim Frostegård
43b31e5e96 bittorrent_udp: request_to_bytes: fix bad writing of zero after IP 2020-04-10 01:43:00 +02:00
Joakim Frostegård
9fbcd60dff bittorrent_udp: response_from_bytes: improve announce code 2020-04-10 01:42:20 +02:00
Joakim Frostegård
b20e5912e2 bittorrent_udp: request converters: general cleanup and fixes 2020-04-10 01:22:13 +02:00
Joakim Frostegård
5bd0deb105 bittorrent_udp: requests converters: clean up 2020-04-10 01:08:54 +02:00
Joakim Frostegård
c5d746a42e bittorrent_udp: request_from_bytes: improve scrape code 2020-04-10 01:05:29 +02:00
Joakim Frostegård
acfd2a75d8 bittorrent_udp: response_to_bytes: improve code 2020-04-09 21:30:58 +02:00
Joakim Frostegård
f203250155 bittorrent_udp: response_from_bytes: more improvements 2020-04-09 21:17:30 +02:00
Joakim Frostegård
928a82e4dc bittorrent_udp: response_from_bytes: improve announce part 2020-04-09 21:08:29 +02:00
Joakim Frostegård
13e7ef6b57 bittorrent_udp: response_from_bytes: more fixes 2020-04-09 20:43:42 +02:00
Joakim Frostegård
a37b44ec89 bittorrent_udp: response_to_bytes: improve scrape encoding 2020-04-09 20:27:50 +02:00
Joakim Frostegård
a865f4a1ae Add inline markers; simplify ip address conversion in request_from_bytes 2020-04-08 11:21:00 +02:00
Joakim Frostegård
a99688a5a2 benchmark byte conversion as well; bittorrent_udp: use buffers 2020-04-07 20:19:28 +02:00
Joakim Frostegård
8426e8f3f7 on invalid requests, return error response; simplify Request type 2020-04-06 19:43:49 +02:00
Joakim Frostegård
ace2e1a296 Initial commit: aquatic, udp bittorrent tracker 2020-04-04 22:08:32 +02:00