Orxonox
0.0.5 Codename: Arcturus
|
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... | |
ENetPeer * | findPeerByAddr (ENetAddress addr) |
bool | remPeerByAddr (ENetAddress addr) |
Public Attributes | |
std::list< ENetPeer * > | peerlist |
the list of servers for internal storage More... | |
This class keeps a list of open connections and some info about them.
orxonox::PeerList::PeerList | ( | ) |
constructor
orxonox::PeerList::~PeerList | ( | ) |
destructor
int orxonox::PeerList::addPeer | ( | ENetPeer * | toadd | ) |
toadd | The peer to add |
Add new peer to list
int orxonox::PeerList::count | ( | ) |
Count current peers.
ENetPeer * orxonox::PeerList::findPeerByAddr | ( | ENetAddress | addr | ) |
addr | The address to find by |
Find a connection by address
bool orxonox::PeerList::remPeerByAddr | ( | ENetAddress | addr | ) |
addr | Address to look for |
Remove peer from list by address
std::list<ENetPeer *> orxonox::PeerList::peerlist |
the list of servers for internal storage