# TorrentInfo Class Reference

Used to store and manage the informations about a given Torrent. More...

`#include <TorrentInfo.h>`

List of all members.

## Public Member Functions

void | set_tracker_announce_url (std::string url)
| Method used to set the tracker announce URL.
void | set_file_length (int length)
| Method used to set torrent file length.
void | set_file_name (std::string name)
| Method used to set torrent file name.
void | set_piece_length (int length)
| Method used to set the piece length.
std::string | get_tracker_announce_url ()
| Function used to return the tracker announce url.
int | get_file_length ()
| Function used to return the torrent file length.
std::string | get_file_name ()
| Function used to return the torent file name.
int | get_piece_length ()
| Function used to return the piece length.
std::string | get_pieces_hash ()
| Function used to return the file pieces hash.
int | add_new_interested_peer (std::string peer_id, std::string status)
| Function used to add a new interested peer in the current torrent.
std::string | get_interested_peer_status (std::string peer_id)
| Function used to return the status of an interested peer.

## Private Attributes

std::string | tracker_announce_url
| The tracker announce url.
int | file_length
| Length of the torrent file in bytes.
std::string | file_name
| The name of the file described in the MetaInfo file.
int | piece_length
| The piece length.
std::string | pieces_hash
| String consisting of the concatenation of all 20 sbyte SHA1 hash values, one per piece.(raw binary encoded).
std::map< std::string, std::string > | interested_peers_map
| Map used to store the list of interested peers in the current torrent.

## Detailed Description

Used to store and manage the informations about a given Torrent.

The documentation for this class was generated from the following files:

- Mes documents/Visual Studio 2005/Projects/WM-ADHOC-TRACKER/WM-ADHOC-TRACKER/TorrentInfo.h
- Mes documents/Visual Studio 2005/Projects/WM-ADHOC-TRACKER/WM-ADHOC-TRACKER/TorrentInfo.cpp