aboutsummaryrefslogtreecommitdiff
path: root/src/metainfo.zig
AgeCommit message (Collapse)Author
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-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