Changeset 3209 for code/branches/netp5/src/network/packet/Packet.cc
- Timestamp:
- Jun 23, 2009, 2:12:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp5/src/network/packet/Packet.cc
r3208 r3209 32 32 #include <cassert> 33 33 #include <enet/enet.h> 34 35 #include "network/ClientInformation.h" 36 34 #include <boost/static_assert.hpp> 35 36 #include "util/Debug.h" 37 37 #include "Acknowledgement.h" 38 #include "DeleteObjects.h"39 38 #include "Chat.h" 40 39 #include "ClassID.h" 40 #include "DeleteObjects.h" 41 41 #include "FunctionCalls.h" 42 42 #include "FunctionIDs.h" … … 44 44 #include "Welcome.h" 45 45 #include "network/Host.h" 46 #include " core/CoreIncludes.h"46 #include "network/ClientInformation.h" 47 47 48 48 namespace orxonox{ … … 50 50 namespace packet{ 51 51 52 #define PACKET_FLAG_DEFAULT ENET_PACKET_FLAG_NO_ALLOCATE 52 // Make sure we assume the right values 53 BOOST_STATIC_ASSERT(static_cast<int>(PacketFlag::Reliable) == static_cast<int>(ENET_PACKET_FLAG_RELIABLE)); 54 BOOST_STATIC_ASSERT(static_cast<int>(PacketFlag::Unsequence) == static_cast<int>(ENET_PACKET_FLAG_UNSEQUENCED)); 55 BOOST_STATIC_ASSERT(static_cast<int>(PacketFlag::NoAllocate) == static_cast<int>(ENET_PACKET_FLAG_NO_ALLOCATE)); 56 57 #define PACKET_FLAG_DEFAULT PacketFlag::NoAllocate 53 58 #define _PACKETID 0 54 59 … … 103 108 } 104 109 else if (this->data_) { 105 // This destructor was probably called as a consequence toENet executing our callback.110 // This destructor was probably called as a consequence of ENet executing our callback. 106 111 // It simply serves us to be able to deallocate the packet content (data_) ourselves since 107 112 // we have created it in the first place.
Note: See TracChangeset
for help on using the changeset viewer.