Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Public Attributes | List of all members
orxonox::PeerList Class Reference

This class keeps a list of open connections and some info about them. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/PeerList.h>

Public Member Functions

 PeerList ()
 constructor More...
 
 ~PeerList ()
 destructor More...
 
int addPeer (ENetPeer *toadd)
 
int count ()
 Count current peers. More...
 
ENetPeerfindPeerByAddr (ENetAddress addr)
 
bool remPeerByAddr (ENetAddress addr)
 

Public Attributes

std::list< ENetPeer * > peerlist
 the list of servers for internal storage More...
 

Detailed Description

This class keeps a list of open connections and some info about them.

Constructor & Destructor Documentation

orxonox::PeerList::PeerList ( )

constructor

orxonox::PeerList::~PeerList ( )

destructor

Member Function Documentation

int orxonox::PeerList::addPeer ( ENetPeer toadd)
Parameters
toaddThe peer to add
Returns
0 for success, -1 for error.

Add new peer to list

int orxonox::PeerList::count ( )

Count current peers.

ENetPeer * orxonox::PeerList::findPeerByAddr ( ENetAddress  addr)
Parameters
addrThe address to find by

Find a connection by address

bool orxonox::PeerList::remPeerByAddr ( ENetAddress  addr)
Parameters
addrAddress to look for
Returns
if the peer was found or not

Remove peer from list by address

Member Data Documentation

std::list<ENetPeer *> orxonox::PeerList::peerlist

the list of servers for internal storage


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