PDA

View Full Version : Create Torrent File And Upload Internet QtCreator



nhs_0702
26th March 2010, 08:30
i want create Torrent file and upload interet,what do i must funcition ?

Kumosan
26th March 2010, 11:29
You must write a routine, which takes a file or a list of files and creates a torrent file, then write a routine, which uploads it where you want it.

nhs_0702
27th March 2010, 04:47
can you said full problem ?,

Lykurg
27th March 2010, 07:00
Do you want that we write that for you? What do you have so far?

nhs_0702
27th March 2010, 09:05
This section describes the functions and classes that are used to create torrent files. It is a layered API with low level classes and higher level convenience functions. A torrent is created in 4 steps:

1. first the files that will be part of the torrent are determined.
2. the torrent properties are set, such as tracker url, web seeds, DHT nodes etc.
3. Read through all the files in the torrent, SHA-1 all the data and set the piece hashes.
4. The torrent is bencoded into a file or buffer.

If there are a lot of files and or deep directoy hierarchies to traverse, step one can be time consuming.

Typically step 3 is by far the most time consuming step, since it requires to read all the bytes from all the files in the torrent.

All of these classes and functions are declared by including libtorrent/create_torrent.hpp.
thank,i found