#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/Connection.h>
orxonox::Connection::~Connection |
( |
| ) |
|
|
virtual |
Constructor.
- Parameters
-
firstPeerId | The initial value of nextPeerID_ |
void orxonox::Connection::addPacket |
( |
ENetPacket * |
packet, |
|
|
uint32_t |
peerID, |
|
|
uint8_t |
channelID |
|
) |
| |
|
protected |
Send a packet.
- Parameters
-
packet | Pointer to the packet to send |
peerID | The peer to which the event is sent |
channelId | The channel ID |
virtual void orxonox::Connection::addPeer |
( |
uint32_t |
peerID | ) |
|
|
protectedpure virtual |
void orxonox::Connection::broadcastPacket |
( |
ENetPacket * |
packet, |
|
|
uint8_t |
channelID |
|
) |
| |
|
protected |
Send a broadcast packet.
- Parameters
-
packet | Pointer to the packet to send |
channelId | The channel ID |
void orxonox::Connection::communicationThread |
( |
| ) |
|
|
private |
Main communication thread.
void orxonox::Connection::disconnectPeer |
( |
uint32_t |
peerID | ) |
|
|
protected |
Send an outgoing event of type 'disconnectPeer'.
- Parameters
-
peerID | The peer to which the event is sent |
void orxonox::Connection::disconnectPeers |
( |
| ) |
|
|
protected |
Send an outgoing event of type 'disconnectPeers'.
void orxonox::Connection::disconnectPeersInternal |
( |
| ) |
|
|
protected |
void orxonox::Connection::enableCompression |
( |
| ) |
|
|
protected |
void orxonox::Connection::processIncomingEvent |
( |
ENetEvent & |
event | ) |
|
|
protected |
Handle an incoming event.
- Parameters
-
Send an event.
- Parameters
-
void orxonox::Connection::processQueue |
( |
| ) |
|
|
protected |
virtual void orxonox::Connection::removePeer |
( |
uint32_t |
peerID | ) |
|
|
protectedpure virtual |
void orxonox::Connection::startCommunicationThread |
( |
| ) |
|
|
protected |
Start the main communication thread.
void orxonox::Connection::stopCommunicationThread |
( |
| ) |
|
|
protected |
Stop the main communication thread.
void orxonox::Connection::waitOutgoingQueue |
( |
| ) |
|
|
protected |
bool orxonox::Connection::bCommunicationThreadRunning_ |
|
private |
boost::thread* orxonox::Connection::communicationThread_ |
|
private |
boost::mutex* orxonox::Connection::incomingEventsMutex_ |
|
private |
uint32_t orxonox::Connection::nextPeerID_ |
|
private |
boost::mutex* orxonox::Connection::outgoingEventsMutex_ |
|
private |
boost::mutex* orxonox::Connection::overallMutex_ |
|
private |
std::map<ENetPeer*, uint32_t> orxonox::Connection::peerIDMap_ |
|
private |
std::map<uint32_t, ENetPeer*> orxonox::Connection::peerMap_ |
|
private |
The documentation for this class was generated from the following files: