Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3208 for code/branches/netp5


Ignore:
Timestamp:
Jun 23, 2009, 12:51:43 AM (15 years ago)
Author:
scheusso
Message:

some cleaning up
i hope that i found some memory leaks

Location:
code/branches/netp5/src/network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp5/src/network/NetworkFunction.h

    r3207 r3208  
    7575    ~NetworkFunctionBase();
    7676   
    77     virtual void         setNetworkID(uint32_t id)       { this->networkID_ = id; }
     77    virtual void        setNetworkID(uint32_t id)       { this->networkID_ = id; }
    7878    inline uint32_t     getNetworkID() const            { return this->networkID_; }
    7979    inline std::string  getName() const                 { return name_; }
  • code/branches/netp5/src/network/packet/DeleteObjects.cc

    r2773 r3208  
    9090    Synchronisable::deleteObject( *(uint32_t*)(data_+_OBJECTIDS+i*sizeof(uint32_t)) );
    9191  }
     92  delete this;
    9293  return true;
    9394}
  • code/branches/netp5/src/network/packet/FunctionCalls.cc

    r3202 r3208  
    6666
    6767bool FunctionCalls::process(){
    68   printf("process function calls\n");
    6968  assert(isDataENetAllocated());
    7069  uint8_t* temp = data_+sizeof(uint32_t); //skip packetid
  • code/branches/netp5/src/network/packet/Packet.cc

    r3202 r3208  
    5454
    5555std::map<size_t, Packet *> Packet::packetMap_;
    56 //! Static mutex for any packetMap_ access
    5756
    5857Packet::Packet(){
     
    213212  // Data was created by ENet
    214213  p->bDataENetAllocated_ = true;
     214  p->enetPacket_ = packet;
    215215
    216216  return p;
     
    230230  delete it->second;
    231231  packetMap_.erase(it);
    232   COUT(4) << "PacketMap size: " << packetMap_.size() << std::endl;
     232  COUT(6) << "PacketMap size: " << packetMap_.size() << std::endl;
    233233}
    234234
Note: See TracChangeset for help on using the changeset viewer.