62 virtual void queuePacket(
ENetPacket *packet,
int clientID, uint8_t channelID)
override;
64 void update(
const Clock& time);
65 virtual void printRTT()
override;
70 void updateGamestate();
75 virtual void addPeer(uint32_t peerID)
override;
76 virtual void removePeer(uint32_t peerID)
override;
79 bool createClient(
int clientID);
80 void disconnectClient( uint32_t clientID );
81 bool sendGameStates();
82 bool sendObjectDeletes();
83 bool isValidTarget(
unsigned int targetID);
84 virtual void doSendChat(
const std::string&
message,
unsigned int sourceID,
unsigned int targetID)
override;
85 virtual void doReceiveChat(
const std::string& message,
unsigned int sourceID,
unsigned int targetID)
override;
86 void syncClassid(
unsigned int clientID);
float timeSinceLastUpdate_
Definition: Server.h:88
Shared library macros, enums, constants and forward declarations for the network library ...
Definition: ServerConnection.h:49
unsigned int playerID()
Definition: Server.h:73
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
virtual bool sendPacket(packet::Packet *packet) override
Definition: Server.h:63
std::string serverName_
Definition: Server.h:91
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
virtual bool isServer_() override
Definition: Server.h:72
std::string getServerName()
Definition: Server.h:67
Definition: LANDiscoverable.h:38
int getClientCount()
Definition: Server.h:66
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
Shared library macros, enums, constants and forward declarations for the util library ...
This class is the root class of the network module for a server.
Definition: Server.h:52
virtual bool send(orxonox::Host *host)
Send the Packet.
Definition: Packet.cc:135
Simple real time clock based on Ogre::Timer.
Definition: Clock.h:57
Definition: WANDiscoverable.h:39
std::vector< uint32_t > clientIDs_
Definition: Server.h:90
std::deque< packet::Packet * > packetQueue_
Definition: Server.h:89
ENet packet structure.
Definition: enet.h:147
Base class of Server and Client This is the Base class of the Server and Client classes.
Definition: Host.h:52