aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2023-12-01Make peer_id a constantMartin Ashby
2023-11-12Move tracker protocol into it's own fileMartin Ashby
Change piece_length -> u32, protocol constrains that anyway annnnd, successfully download a file (albeit from one torrent only with no checking of a ton of stuff)
2023-11-12Handshake a peerMartin Ashby
2023-11-11Make request to tracker, get and parse response to find peers listMartin Ashby
2023-11-11Don't hex the hashMartin Ashby
2023-11-11Include ownership info on BValue.Martin Ashby
It's a bit cumbersome, but it caters for the two situations: a. parsing from a stream where strings must be copied into the structure and owned, and b. constructing from application code where strings must _not_ be freed. Either way, the base structures (array list, hash map) are always owned and must be freed. Add method and test for info hash
2023-11-11Extend meta info file parsingMartin Ashby
2023-11-11Add basic meta info file parsingMartin Ashby
2023-11-09Add bencoding as well as bdecodingMartin Ashby
2023-11-09Add bencoding decoding libraryMartin Ashby