Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 5, 2008, 11:32:42 PM (16 years ago)
Author:
scheusso
Message:

we use enetcallback for destroying packets now (unfortunately there are still some problems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/ConnectionManager.cc

    r1710 r1711  
    338338    std::string classname;
    339339    orxonox::Identifier *id;
    340     packet::Packet packet;
    341     packet.setClientID(clientID);
    342     packet::ClassID *classid;
    343340    std::map<std::string, orxonox::Identifier*>::const_iterator it = orxonox::Factory::getFactoryBegin();
    344341    while(it != orxonox::Factory::getFactoryEnd()){
     
    352349      COUT(4) << "Con.Man:syncClassid:\tnetwork_id: " << network_id << ", classname: " << classname << std::endl;
    353350
    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){
    357354        failures++;
    358355      }
    359       delete classid;
    360356      ++it;
    361357    }
Note: See TracChangeset for help on using the changeset viewer.