Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 352 for code/branches/FICN/src


Ignore:
Timestamp:
Nov 29, 2007, 5:32:20 PM (17 years ago)
Author:
scheusso
Message:

corrected some compiler-warnings

Location:
code/branches/FICN/src/network
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ClientConnection.cc

    r346 r352  
    123123      switch(event.type){
    124124        // log handling ================
     125      case ENET_EVENT_TYPE_CONNECT:
    125126      case ENET_EVENT_TYPE_RECEIVE:
    126127        processData(&event);
     
    130131        // extend =====================
    131132        break;
     133      case ENET_EVENT_TYPE_NONE:
     134        continue;
    132135      }
    133136    }
     
    147150      switch (event.type)
    148151      {
     152        case ENET_EVENT_TYPE_NONE:
     153        case ENET_EVENT_TYPE_CONNECT:
    149154        case ENET_EVENT_TYPE_RECEIVE:
    150155          enet_packet_destroy(event.packet);
     
    155160    }
    156161    enet_peer_reset(server);
     162    return false;
    157163  }
    158164
  • code/branches/FICN/src/network/ConnectionManager.cc

    r337 r352  
    6565
    6666  bool ConnectionManager::addPacket(ENetPacket *packet, ENetPeer *peer){
    67     if(client=NULL)
     67    if(client==NULL)
    6868      return false;
    6969    ClientList *temp=client;
     
    138138        // add some error/log handling here
    139139        clientDisconnect(event.peer);
     140        break;
     141      case ENET_EVENT_TYPE_NONE:
    140142        break;
    141143      }
  • code/branches/FICN/src/network/dummyserver.cc

    r346 r352  
    2222  bool quit=false;
    2323  ENetPacket *packet;
    24   ENetEvent event;
    2524  server.createListener();
    2625
Note: See TracChangeset for help on using the changeset viewer.