# TrackerClientServer Class Reference

used to manage the communication between the tracker and the client. More...

`#include <WM-ADHOC-TRACKERDlg.h>`

List of all members.

## Public Member Functions

void | send_t2t_request (string info_hash, unsigned int port, string host, bool search, CWMADHOCTRACKERDlg *view)
| Method used to send tracker to tracker requests about peers for a given torrent.
void | set_ss (string info_hash, bool state)
| Set the search status for a given torrent.
bool | get_ss (string info_hash)
| Return the search status for a given torrent.
bool | wait_for_search_results (string info_hash)
| Function used to wait for the search results of trackers involved in the torrent sharing.

## Static Public Member Functions

static UINT | T2T_Request (LPVOID ptr_tp)
| Method used by a thread as a start point in order to manage tracker/tracker requests.
static UINT | start_http_server (LPVOID tp)
| Method used by a thread as a start point in order to manage tracker/tracker requests.
static UINT | T2T_Request_known_host (LPVOID ptr_tp)
| Function used as an entry point to the thread which will be used to send tracker to tracker request.

## Private Attributes

int | number_of_thread_searchers
| The Number of threads looking for informations about a given torrent.
map< string, bool > | search_status
| A map used to store the search status for a given torrent.

## Classes

struct | http_request
| This structer is used to store a http request pqrqmeters. More...

## Detailed Description

used to manage the communication between the tracker and the client.

## Member Function Documentation

UINT TrackerClientServer::T2T_Request | ( | LPVOID | ptr_tp | ) | `[static]`

Method used by a thread as a start point in order to manage tracker/tracker requests.

\ fn static UINT T2T_Request(LPVOID ptr_tp)

void TrackerClientServer::set_ss | ( | string | info_hash,
|  | bool | state |
| ) |  |  |

Set the search status for a given torrent.

Method used to update the search status of a given torrent.

bool TrackerClientServer::get_ss | ( | string | info_hash | ) |

Return the search status for a given torrent.

Method used to get the search status of 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/WM-ADHOC-TRACKERDlg.h
- Mes documents/Visual Studio 2005/Projects/WM-ADHOC-TRACKER/WM-ADHOC-TRACKER/WM-ADHOC-TRACKERDlg.cpp