Changeset 401
- Timestamp:
- Dec 5, 2007, 4:10:19 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/CMakeLists.txt
r389 r401 63 63 FIND_PACKAGE(OpenAL) 64 64 FIND_PACKAGE(ALUT) 65 # 65 #FIND_PACKAGE(OggVorbis) 66 66 67 67 #Sets the search paths for the linking -
code/branches/FICN/src/network/Client.cc
r400 r401 155 155 156 156 void Client::processClassid(classid *clid){ 157 158 159 157 orxonox::Identifier *id; 158 orxonox::ID(std::string(clid->message))->setNetworkID(clid->classid); 160 159 } 161 160 -
code/branches/FICN/src/network/ConnectionManager.cc
r400 r401 231 231 addPacket(packet_gen.clid( i, classname ),clientID); 232 232 } 233 ++i; 233 234 } 234 235 sendPackets(); -
code/branches/FICN/src/network/PacketDecoder.cc
r400 r401 138 138 cid->message = (const char *)malloc(cid->length); 139 139 enet_packet_destroy( packet ); 140 processClassid( &cid);140 processClassid(cid); 141 141 } 142 142 -
code/branches/FICN/src/network/PacketManager.h
r400 r401 66 66 //call this function to decode, it calls the right decoding function below 67 67 bool elaborate( ENetPacket* packet, int clientId ); 68 struct classid{ 69 int id; 70 int length; 71 int classid; 72 const char *message; 73 }; 68 74 private: 69 75 struct ack { … … 89 95 }; 90 96 91 struct classid{ 92 int id; 93 int length; 94 int classid; 95 const char *message; 96 }; 97 97 98 98 99 void acknowledgement( ENetPacket* packet ); -
code/branches/FICN/src/network/Synchronisable.cc
r367 r401 20 20 Synchronisable::Synchronisable() 21 21 { 22 static int idCounter=0; 22 23 datasize=0; 24 objectID=idCounter++; 23 25 //registerAllVariables(); 24 26 }
Note: See TracChangeset
for help on using the changeset viewer.