Changeset 9523 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 27, 2006, 8:37:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/message_manager.cc
r9522 r9523 228 228 { 229 229 230 // RT_ALL_BUT_ME = 1, //!< message is sent to all users but myself231 // RT_ALL_ME, //!< message is sent to all users232 // RT_USER, //!< message is only sent to reciever233 // RT_NOT_USER, //!< message is sent to all but reciever234 // RT_SERVER235 236 230 // find out if this message is addressed for this client too 237 231 if( messageType == RT_ALL_BUT_ME || 238 232 messageType == RT_ALL_ME || 233 messageType == RT_NOT_USER && SharedNetworkData::getInstance()->getHostID() != destinationId || 239 234 messageType == RT_USER && SharedNetworkData::getInstance()->getHostID() == destinationId || 240 235 messageType == RT_SERVER && SharedNetworkData::getInstance()->isMasterServer()) … … 265 260 else 266 261 { 267 PRINTF(0)("===========>> Forwarding Message\n"); 268 NetworkMessage msg; 269 270 msg.data = new byte[messageLength]; 271 memcpy( msg.data, data + i, messageLength ); 272 msg.length = messageLength; 273 msg.messageType = (MessageType)messageType; 274 msg.number = userId; 275 msg.senderId = senderId; 276 msg.destinationId = destinationId; 277 278 incomingMessageQueue.push_back( msg ); 262 // forwarding the messages but only if its not a client 263 if( !SharedNetworkData::getInstance()->isClient()) 264 { 265 PRINTF(0)("===========>> Forwarding Message\n"); 266 NetworkMessage msg; 267 268 msg.data = new byte[messageLength]; 269 memcpy( msg.data, data + i, messageLength ); 270 msg.length = messageLength; 271 msg.messageType = (MessageType)messageType; 272 msg.number = userId; 273 msg.senderId = senderId; 274 msg.destinationId = destinationId; 275 276 incomingMessageQueue.push_back( msg ); 277 } 279 278 } 280 279 }
Note: See TracChangeset
for help on using the changeset viewer.