Google
Web alhem.net

MyHandler::PEER Struct Reference

#include <MyHandler.h>

List of all members.

Public Member Functions

 PEER (const std::string &id, const std::string &address, port_t p)
void update (const std::string &u, const std::string &d, const std::string &l)
void stop ()
void complete ()

Public Attributes

std::string escaped_peer_id
unsigned char peer_id [20]
std::string ip
port_t port
uint64_t uploaded
uint64_t downloaded
uint64_t left
bool updated
bool completed
bool stopped
time_t last_contact


Detailed Description

Definition at line 41 of file MyHandler.h.


Constructor & Destructor Documentation

MyHandler::PEER::PEER ( const std::string &  id,
const std::string &  address,
port_t  p 
) [inline]

Definition at line 42 of file MyHandler.h.

References peer_id.


Member Function Documentation

void MyHandler::PEER::update ( const std::string &  u,
const std::string &  d,
const std::string &  l 
) [inline]

Definition at line 55 of file MyHandler.h.

References downloaded, left, updated, and uploaded.

void MyHandler::PEER::stop (  )  [inline]

Definition at line 61 of file MyHandler.h.

References stopped, and updated.

void MyHandler::PEER::complete (  )  [inline]

Definition at line 66 of file MyHandler.h.

References completed, and updated.


Member Data Documentation

std::string MyHandler::PEER::escaped_peer_id

Definition at line 71 of file MyHandler.h.

unsigned char MyHandler::PEER::peer_id[20]

Definition at line 72 of file MyHandler.h.

Referenced by PEER().

std::string MyHandler::PEER::ip

Definition at line 73 of file MyHandler.h.

port_t MyHandler::PEER::port

Definition at line 74 of file MyHandler.h.

uint64_t MyHandler::PEER::uploaded

Definition at line 75 of file MyHandler.h.

Referenced by update().

uint64_t MyHandler::PEER::downloaded

Definition at line 76 of file MyHandler.h.

Referenced by update().

uint64_t MyHandler::PEER::left

Definition at line 77 of file MyHandler.h.

Referenced by update().

bool MyHandler::PEER::updated

Definition at line 78 of file MyHandler.h.

Referenced by complete(), stop(), and update().

bool MyHandler::PEER::completed

Definition at line 79 of file MyHandler.h.

Referenced by complete().

bool MyHandler::PEER::stopped

Definition at line 80 of file MyHandler.h.

Referenced by stop().

time_t MyHandler::PEER::last_contact

Definition at line 81 of file MyHandler.h.


The documentation for this struct was generated from the following file:
Generated on Thu Sep 27 12:58:30 2007 for distributed bittorrent tracker by  doxygen 1.5.2