orxonox::Connection Class Reference

#include <src/network/Connection.h>

Inheritance diagram for orxonox::Connection:

orxonox::ClientConnection orxonox::ServerConnection orxonox::Client orxonox::Server

List of all members.

Public Member Functions

ENetHostgetHost ()
bool sendPackets ()
virtual ~Connection ()

Static Public Member Functions

static bool addPacket (ENetPacket *packet, ENetPeer *peer)

Protected Member Functions

virtual void addClient (ENetEvent *event)=0
 Connection ()
virtual void disconnectPeer (ENetEvent *event)=0
void disconnectPeer (ENetPeer *peer)
virtual bool processPacket (ENetEvent *event)
void processQueue ()
int service (ENetEvent *event)

Static Protected Member Functions

static ConnectiongetInstance ()

Protected Attributes

ENetHosthost_

Private Attributes

ENetAddressbindAddress_

Static Private Attributes

static Connectioninstance_ = 0


Constructor & Destructor Documentation

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

References instance_.

orxonox::Connection::Connection (  )  [protected]

References instance_.


Member Function Documentation

virtual void orxonox::Connection::addClient ( ENetEvent event  )  [protected, pure virtual]

Implemented in orxonox::ClientConnection, and orxonox::Server.

Referenced by processQueue().

bool orxonox::Connection::addPacket ( ENetPacket packet,
ENetPeer peer 
) [static]

virtual void orxonox::Connection::disconnectPeer ( ENetEvent event  )  [protected, pure virtual]

void orxonox::Connection::disconnectPeer ( ENetPeer peer  )  [protected]

ENetHost* orxonox::Connection::getHost (  )  [inline]

static Connection* orxonox::Connection::getInstance (  )  [inline, static, protected]

bool orxonox::Connection::processPacket ( ENetEvent event  )  [protected, virtual]

void orxonox::Connection::processQueue (  )  [protected]

bool orxonox::Connection::sendPackets (  ) 

int orxonox::Connection::service ( ENetEvent event  )  [protected]


Member Data Documentation

Reimplemented in orxonox::ServerConnection.

Connection * orxonox::Connection::instance_ = 0 [static, private]


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

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