Changeset 592 for code/branches/FICN/src/network
- Timestamp:
- Dec 17, 2007, 8:59:31 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/CMakeLists.txt
r555 r592 71 71 #objects 72 72 ${ENet_LIBRARY} 73 ${Z lib_LIBRARY}73 ${ZLIB_LIBRARY} 74 74 ${WINDOWS_ENET_DEPENDENCIES} 75 75 ) … … 82 82 #objects 83 83 ${ENet_LIBRARY} 84 ${Z lib_LIBRARY}84 ${ZLIB_LIBRARY} 85 85 ${WINDOWS_ENET_DEPENDENCIES} 86 86 ) -
code/branches/FICN/src/network/PacketTypes.h
r436 r592 2 2 // C++ Interface: PacketTypes 3 3 // 4 // Description: 4 // Description: 5 5 // 6 6 // … … 25 25 26 26 27 /**28 * This struct defines a gamestate:29 * size: total size of the data in *data30 * data: pointer to the data allocated in the memory31 */27 /** 28 * This struct defines a gamestate: 29 * size: total size of the data in *data 30 * data: pointer to the data allocated in the memory 31 */ 32 32 struct GameState{ 33 33 int id; 34 int size; 34 int size; //!< total size of data 35 35 // new ---- change functions 36 36 bool diffed; 37 unsigned char *data; 37 unsigned char *data; //!< pointer to data 38 38 }; 39 39 40 /**41 * this struct defines a gamestate:40 /** 41 * this struct defines a gamestate: 42 42 * compsize is the size of the compressed data 43 43 * normsize is the size of the uncompressed data 44 44 * data are the gamestates 45 */45 */ 46 46 struct GameStateCompressed{ 47 int id; 48 int compsize; 49 int normsize; 47 int id; 48 int compsize; //!< size of compressed data 49 int normsize; //!< size of uncompressed data 50 50 // new ----- change functions 51 51 bool diffed; 52 unsigned char *data; 52 unsigned char *data; //!< gamestate data 53 53 }; 54 54 … … 59 59 const char *message; 60 60 }; 61 62 61 62 63 63 struct ack { 64 64 int id; -
code/branches/FICN/src/network/Synchronisable.cc
r573 r592 116 116 for(i=syncList.begin(); n<datasize && i!=syncList.end(); ++i){ 117 117 COUT(2) << "size of variable: " << i->size << std::endl; 118 COUT(2) << "size of variable: " << i->size << std::endl; 118 119 //COUT(2) << "size of variable: " << i->size << std::endl; 119 120 //(std::memcpy(retVal.data+n, (const void*)(&(i->size)), sizeof(int));
Note: See TracChangeset
for help on using the changeset viewer.