- Timestamp:
- May 24, 2018, 3:24:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Masterserver_FS18/src/libraries/network/Server.h
r11071 r11990 38 38 #include "core/CorePrereqs.h" 39 39 #include "Host.h" 40 // #include "GamestateManager.h"41 40 #include "ServerConnection.h" 42 41 #include "LANDiscoverable.h" … … 62 61 void close(); 63 62 virtual void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) override; 64 virtual bool sendPacket( packet::Packet* packet ) override { return packet->send( static_cast<Host*>(this) ); }63 virtual bool sendPacket( packet::Packet* packet ) override { return packet->send( static_cast<Host*>(this) ); } 65 64 void update(const Clock& time); 66 unsigned int getRTT(unsigned int clientID);67 65 virtual void printRTT() override; 68 float getPacketLoss(unsigned int clientID); 69 int getClientCount() { return this->clientIDs_.size();} 70 std::string getServerName() { return this->serverName_;} 66 int getClientCount() { return this->clientIDs_.size(); } 67 std::string getServerName() { return this->serverName_; } 71 68 72 69 protected: 73 70 void updateGamestate(); 74 71 private: 75 virtual bool isServer_() override {return true;}76 unsigned int playerID() {return 0;}72 virtual bool isServer_() override { return true; } 73 unsigned int playerID() { return 0; } 77 74 78 75 virtual void addPeer(uint32_t peerID) override;
Note: See TracChangeset
for help on using the changeset viewer.