Changeset 9519 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 27, 2006, 7:24:41 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/message_manager.cc
r9517 r9519 199 199 outgoingMessageQueue[userId].recievedMessages.end() ) 200 200 { 201 // call the handler function and handle errors 201 202 if ( !(*(messageHandlerMap[(MessageType)messageType].cb))( (MessageType)messageType, data + i, messageLength, 202 203 messageHandlerMap[(MessageType)messageType].someData, userId ) ) … … 211 212 212 213 incomingMessageQueue.push_back( msg ); 213 PRINTF(0)("<<< MessageManager: got msg with type: %i\n", messageType);214 214 } 215 215 outgoingMessageQueue[userId].recievedMessages.push_back( number ); 216 PRINTF(0)("<<< MessageManager: got msg with type: %i\n", messageType); 216 217 } 217 218 i += messageLength; … … 342 343 msg.messageType = messageType; 343 344 msg.number = this->newNumber++; 345 msg.senderId = SharedNetworkData::getInstance()->getHostID(); 346 msg.destinationId = reciever; 344 347 msg.priority = messagePriority; 345 348 … … 356 359 msg.messageType = messageType; 357 360 msg.number = this->newNumber++; 361 msg.senderId = SharedNetworkData::getInstance()->getHostID(); 362 msg.destinationId = reciever; 358 363 msg.priority = messagePriority; 359 364 … … 377 382 msg.messageType = messageType; 378 383 msg.number = this->newNumber++; 384 msg.senderId = SharedNetworkData::getInstance()->getHostID(); 385 msg.destinationId = reciever; 379 386 msg.priority = messagePriority; 380 387 … … 396 403 msg.messageType = messageType; 397 404 msg.number = SharedNetworkData::getInstance()->getHostID(); 405 msg.senderId = SharedNetworkData::getInstance()->getHostID(); 406 msg.destinationId = reciever; 398 407 msg.priority = messagePriority; 399 408 -
branches/proxy/src/lib/network/message_manager.h
r9514 r9519 61 61 struct NetworkMessage 62 62 { 63 MessageType messageType; 64 byte * data; 65 int length; 66 int number; 67 MessagePriority priority; 63 MessageType messageType; //!< type of the message 64 byte * data; //!< data 65 int length; //!< length of the data 66 int number; //!< serial number 67 int senderId; //!< userId of the sender 68 int destinationId; //!< userId of the destination 69 MessagePriority priority; //!< priority of the messages 68 70 }; 69 71
Note: See TracChangeset
for help on using the changeset viewer.