Changeset 10845 for code/branches/cpp11_v2/src/libraries/network
- Timestamp:
- Nov 23, 2015, 10:20:29 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/network
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/network/Client.h
r10817 r10845 76 76 static Client* getInstance(){ return singletonPtr_s; } // tolua_export 77 77 78 bool establishConnection() override;78 virtual bool establishConnection() override; 79 79 void setDestination( const std::string& serverAddress, unsigned int port ); // tolua_export 80 bool closeConnection() override;81 v oid queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override;80 virtual bool closeConnection() override; 81 virtual void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override; 82 82 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 83 83 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; … … 91 91 Client(const Client& copy); // not used 92 92 virtual bool isServer_() override{return false;} 93 v oid processPacket(packet::Packet* packet) override;93 virtual void processPacket(packet::Packet* packet) override; 94 94 95 95 static Client* singletonPtr_s; -
code/branches/cpp11_v2/src/libraries/network/NetworkFunction.h
r10817 r10845 142 142 { } 143 143 144 inline bool call(uint32_t objectID) override144 virtual inline bool call(uint32_t objectID) override 145 145 { 146 146 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 152 152 return false; 153 153 } 154 inline bool call(uint32_t objectID, const MultiType& mt1) override154 virtual inline bool call(uint32_t objectID, const MultiType& mt1) override 155 155 { 156 156 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 162 162 return false; 163 163 } 164 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override164 virtual inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override 165 165 { 166 166 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 172 172 return false; 173 173 } 174 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override174 virtual inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override 175 175 { 176 176 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 182 182 return false; 183 183 } 184 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override184 virtual inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override 185 185 { 186 186 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 192 192 return false; 193 193 } 194 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override194 virtual inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override 195 195 { 196 196 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) -
code/branches/cpp11_v2/src/libraries/network/Server.h
r10817 r10845 61 61 void open(); 62 62 void close(); 63 v oid queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) override;63 virtual void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) override; 64 64 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 65 65 void update(const Clock& time); … … 76 76 unsigned int playerID(){return 0;} 77 77 78 v oid addPeer(uint32_t peerID) override;79 v oid removePeer(uint32_t peerID) override;80 v oid processPacket(packet::Packet* packet) override;78 virtual void addPeer(uint32_t peerID) override; 79 virtual void removePeer(uint32_t peerID) override; 80 virtual void processPacket(packet::Packet* packet) override; 81 81 82 82 bool createClient(int clientID); -
code/branches/cpp11_v2/src/libraries/network/packet/Acknowledgement.h
r10817 r10845 46 46 ~Acknowledgement(); 47 47 48 inline unsigned int getSize() const override;48 virtual inline unsigned int getSize() const override; 49 49 virtual bool process(orxonox::Host* host) override; 50 50 -
code/branches/cpp11_v2/src/libraries/network/packet/Chat.h
r10817 r10845 49 49 50 50 /* get size of packet */ 51 inline unsigned int getSize() const override;51 virtual inline unsigned int getSize() const override; 52 52 53 53 /* process chat message packet and remove it afterwards */ -
code/branches/cpp11_v2/src/libraries/network/packet/ClassID.h
r10817 r10845 47 47 ~ClassID(); 48 48 49 uint32_t getSize() const override;49 virtual uint32_t getSize() const override; 50 50 virtual bool process(orxonox::Host* host) override; 51 51 -
code/branches/cpp11_v2/src/libraries/network/packet/DeleteObjects.h
r10817 r10845 48 48 bool fetchIDs(); 49 49 50 inline unsigned int getSize() const override;50 virtual inline unsigned int getSize() const override; 51 51 virtual bool process(orxonox::Host* host) override; 52 52 -
code/branches/cpp11_v2/src/libraries/network/packet/FunctionCalls.h
r10817 r10845 52 52 ~FunctionCalls(); 53 53 54 inline unsigned int getSize() const override54 virtual inline unsigned int getSize() const override 55 55 { assert(!this->isDataENetAllocated()); return currentSize_; } 56 56 virtual bool process(orxonox::Host* host) override; -
code/branches/cpp11_v2/src/libraries/network/packet/Welcome.h
r10817 r10845 45 45 virtual ~Welcome(); 46 46 47 uint8_t *getData() override;48 inline unsigned int getSize() const override;47 virtual uint8_t *getData() override; 48 virtual inline unsigned int getSize() const override; 49 49 virtual bool process(orxonox::Host* host) override; 50 50
Note: See TracChangeset
for help on using the changeset viewer.