#include <MyHandler.h>
Collaboration diagram for MyHandler:
Public Types | |
typedef std::vector< PEER * > | peer_v |
typedef std::map< std::string, peer_v > | peer_m |
Public Member Functions | |
MyHandler (const std::string &) | |
~MyHandler () | |
std::string | GetVersion () |
unsigned char * | GetKey_m2minion () |
int | GetInt (const std::string &) |
std::string | GetString (const std::string &) |
bool | GetBoolean (const std::string &) |
std::string | escape (const std::string &) |
PEER * | reg_peer (const std::string &hash, const std::string &peer_id, const std::string &ip, port_t port) |
void | CreatePeers (TcpSocket *, const std::string &hash, size_t) |
void | SendList () |
void | CheckDropped () |
void | SendInit (MyMinionSocket *) |
size_t | MapSize () |
void | HtmlReport (TrackerSock *) |
Private Attributes | |
Configuration | m_config |
peer_m | m_peers |
Classes | |
struct | PEER |
Definition at line 38 of file MyHandler.h.
typedef std::vector<PEER *> MyHandler::peer_v |
Definition at line 83 of file MyHandler.h.
typedef std::map<std::string,peer_v> MyHandler::peer_m |
Definition at line 84 of file MyHandler.h.
MyHandler::MyHandler | ( | const std::string & | f | ) |
File ......... MyHandler.cpp Published .... 2004-04-20
Definition at line 30 of file MyHandler.cpp.
MyHandler::~MyHandler | ( | ) |
std::string MyHandler::GetVersion | ( | ) | [inline] |
unsigned char* MyHandler::GetKey_m2minion | ( | ) | [inline] |
int MyHandler::GetInt | ( | const std::string & | ) |
Definition at line 52 of file MyHandler.cpp.
References Configuration::Find(), BaseXMLFile::GetProperty(), BaseXMLFile::GetRootElement(), m_config, and BaseXMLFile::SetCurrent().
Referenced by CheckDropped(), connect(), CreatePeers(), and reg_minder().
std::string MyHandler::GetString | ( | const std::string & | ) |
Definition at line 69 of file MyHandler.cpp.
References Configuration::Find(), BaseXMLFile::GetProperty(), BaseXMLFile::GetRootElement(), m_config, and BaseXMLFile::SetCurrent().
Referenced by GetVersion(), and reg_minder().
bool MyHandler::GetBoolean | ( | const std::string & | ) |
Definition at line 83 of file MyHandler.cpp.
References Configuration::Find(), BaseXMLFile::GetProperty(), BaseXMLFile::GetRootElement(), m_config, and BaseXMLFile::SetCurrent().
std::string MyHandler::escape | ( | const std::string & | ) |
MyHandler::PEER * MyHandler::reg_peer | ( | const std::string & | hash, | |
const std::string & | peer_id, | |||
const std::string & | ip, | |||
port_t | port | |||
) |
void MyHandler::CreatePeers | ( | TcpSocket * | , | |
const std::string & | hash, | |||
size_t | ||||
) |
void MyHandler::SendList | ( | ) |
void MyHandler::CheckDropped | ( | ) |
void MyHandler::SendInit | ( | MyMinionSocket * | ) |
size_t MyHandler::MapSize | ( | ) |
void MyHandler::HtmlReport | ( | TrackerSock * | ) |
Configuration MyHandler::m_config [private] |
peer_m MyHandler::m_peers [private] |
Definition at line 115 of file MyHandler.h.
Referenced by CheckDropped(), CreatePeers(), MapSize(), reg_peer(), SendInit(), SendList(), and ~MyHandler().