# NeighborsManager Class Reference

This Class is used by the Tracker to manage the Network Trackers overlay. More...

`#include <NeighborsManager.h>`

List of all members.

## Public Member Functions

bool | notification_of_changing_in_rt ()
| This function returns a notification when there is any change in the device routing table.
int | add_new_neighbor (std::string ip_adr, std::string status)
| Function used to add a new member to the neighbors list.
std::string | get_neighbor_status (std::string ip_adr)
| Function used to a given neighbor status.
void | add_tracker (string info_hash, string ip, int port)
| Method used to add a tracker to the overlay.
void | send_peers_interested_in (string info_hash, string peers_dict, string info_source, int port)
| Method used to send a given bencoded message to a set of peers.
void | delete_tracker_from_the_overlay (string ip)
| Method used to delete a tracker from the overlay.
void | update_tracker_overlay_list ()
| Method used to update the trackers overlay.
int | get_trackers_overlay_size ()
| Function that return the trackers overlay size.

## Static Public Member Functions

static UINT | spy_thread_function (LPVOID param)
| Function used as a start point to track any modification on the device rouitng table.
static UINT | T2T_Info_to_the_nearest (LPVOID ptr_tp)
| Function used as a start point for a new thread to send a bencoded message to the nearest tracker (in term of hops) within the overlay.
static UINT | T2T_Info_to_all (LPVOID ptr_tp)
| Function used as a start point for a new thread to send a bencoded message to all the network trackers.
static UINT | T2T_sync (LPVOID param)
| Forwards a synchronisation request to all the trackers.

## Private Attributes

WMRoutingTable * | wmrt
| A ptr to the WMRoutingTable object.
std::map< std::string, std::string > | neighbors_map
| Neighbors map.
TrackersMap | trackers_map
| Trackers overlay map.

## Classes

struct | thread_info_param
| This structer is used as a parameter for the thread that will be in charge of sending a bencoded message to the trackers overlay. More...

## Detailed Description

This Class is used by the Tracker to manage the Network Trackers overlay.

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

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