orxonox::ClientConnection Class Reference

#include <src/network/ClientConnection.h>

Inheritance diagram for orxonox::ClientConnection:

orxonox::Connection orxonox::Client

List of all members.

Public Member Functions

bool addPacket (ENetPacket *packet)
 ClientConnection ()
virtual bool closeConnection ()
virtual bool establishConnection ()
ENetEventgetEvent ()
bool isConnected ()
bool queueEmpty ()
void setPort (unsigned int port)
void setServerAddress (const std::string &serverAddress)
virtual ~ClientConnection ()

Private Member Functions

virtual void addClient (ENetEvent *event)
bool disconnectConnection ()
virtual void disconnectPeer (ENetEvent *event)

Private Attributes

bool established_
ENetPeerserver_
ENetAddressserverAddress_


Constructor & Destructor Documentation

orxonox::ClientConnection::ClientConnection (  ) 

orxonox::ClientConnection::~ClientConnection (  )  [virtual]


Member Function Documentation

void orxonox::ClientConnection::addClient ( ENetEvent event  )  [private, virtual]

Implements orxonox::Connection.

bool orxonox::ClientConnection::addPacket ( ENetPacket packet  ) 

bool orxonox::ClientConnection::closeConnection (  )  [virtual]

bool orxonox::ClientConnection::disconnectConnection (  )  [private]

void orxonox::ClientConnection::disconnectPeer ( ENetEvent event  )  [private, virtual]

Implements orxonox::Connection.

References COUT, and established_.

bool orxonox::ClientConnection::establishConnection (  )  [virtual]

ENetEvent* orxonox::ClientConnection::getEvent (  ) 

bool orxonox::ClientConnection::isConnected (  )  [inline]

bool orxonox::ClientConnection::queueEmpty (  ) 

void orxonox::ClientConnection::setPort ( unsigned int  port  ) 

References serverAddress_.

Referenced by orxonox::Client::Client().

void orxonox::ClientConnection::setServerAddress ( const std::string serverAddress  ) 

References serverAddress_.

Referenced by orxonox::Client::Client().


Member Data Documentation


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

Generated on Tue Jul 28 16:22:23 2009 for Orxonox by  doxygen 1.5.6