Question

I want to extract information about torrent file like: files names inside it, their sizes ..., is there a C++ library for Linux that help me achieve this easily? or what is the structure of a torrent file and how do I find these information?

Was it helpful?

Solution

You can use the libtorrent library—a feature complete C++ BitTorrent implementation focusing on efficiency and scalability.

If you want to write your own library, there is the official BitTorrent Protocol Specification but it is very poorly written and lacks a lot of details. There is also a much better specification available.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top