Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 12, 2008, 7:40:47 PM (16 years ago)
Author:
scheusso
Message:

merged network branch back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/ClientConnection.cc

    r1755 r1907  
    7777  }
    7878
    79 
    80   /*ENetPacket *ClientConnection::getPacket(ENetAddress &address) {
    81     if(!buffer.isEmpty()) {
    82       //std::cout << "###BUFFER IS NOT EMPTY###" << std::endl;
    83       return buffer.pop(address);
    84     }
    85     else{
    86       return NULL;
    87     }
    88   }
    89 
    90   ENetPacket *ClientConnection::getPacket() {
    91     ENetAddress address; //sems that address is not needed
    92     return getPacket(address);
    93   }*/
     79  ClientConnection::~ClientConnection(){
     80    if(established)
     81      closeConnection();
     82  }
    9483
    9584  ENetEvent *ClientConnection::getEvent(){
Note: See TracChangeset for help on using the changeset viewer.