n2nc::TrackerClient Class Reference

This class proviedes the code to connect and exchange commands to and from a TrackerServer. More...

#include <trackerclient.h>

Collaboration diagram for n2nc::TrackerClient:

Collaboration graph
[legend]

List of all members.

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::NetworkgetNetwork (std::string name)
bool createNetwork (std::string netname)


Detailed Description

This class proviedes the code to connect and exchange commands to and from a TrackerServer.

See also:
TrackerServer
Author:
fabsoft <fabsoft@gmail.com>

Definition at line 17 of file trackerclient.h.


Member Function Documentation

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


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

Generated on Mon Oct 6 19:32:35 2008 for n2nc by  doxygen 1.5.5