#include <trackerclient.h>
Public Types | |
enum | command_t { JOIN_NET, PART_NET } |
Public Member Functions | |
bool | connect (const net::SocketAddress &address) |
bool | sendCmd (std::string cmd) |
std::string | recvCmd () |
n2nc::Network & | getNetwork (std::string name) |
bool | createNetwork (std::string netname) |
Definition at line 17 of file trackerclient.h.
bool n2nc::TrackerClient::connect | ( | const net::SocketAddress & | address | ) |
Create a connection to the server tracker
bool n2nc::TrackerClient::sendCmd | ( | std::string | cmd | ) |
Sends a command to the server tracker
std::string n2nc::TrackerClient::recvCmd | ( | ) |
Receives a command from the server tracker
n2nc::Network& n2nc::TrackerClient::getNetwork | ( | std::string | name | ) |
Get Network by name