Changeset 1711 for code/branches/network/src/network/ConnectionManager.cc
- Timestamp:
- Sep 5, 2008, 11:32:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/ConnectionManager.cc
r1710 r1711 338 338 std::string classname; 339 339 orxonox::Identifier *id; 340 packet::Packet packet;341 packet.setClientID(clientID);342 packet::ClassID *classid;343 340 std::map<std::string, orxonox::Identifier*>::const_iterator it = orxonox::Factory::getFactoryBegin(); 344 341 while(it != orxonox::Factory::getFactoryEnd()){ … … 352 349 COUT(4) << "Con.Man:syncClassid:\tnetwork_id: " << network_id << ", classname: " << classname << std::endl; 353 350 354 classid = new packet::ClassID(network_id, classname);355 packet.setPacketContent(classid);356 while(! packet.send() && failures < 10){351 packet::ClassID classid( network_id, classname ); 352 classid.setClientID(clientID); 353 while(!classid.send() && failures < 10){ 357 354 failures++; 358 355 } 359 delete classid;360 356 ++it; 361 357 }
Note: See TracChangeset
for help on using the changeset viewer.