Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2008, 1:15:58 PM (16 years ago)
Author:
dumenim
Message:

catched some return values

File:
1 edited

Legend:

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

    r1011 r1088  
    8585
    8686  ENetPacket *ClientConnection::getPacket() {
    87     ENetAddress address;
     87    ENetAddress address; //sems that address is not needed
    8888    return getPacket(address);
    8989  }
     
    160160      case ENET_EVENT_TYPE_CONNECT:
    161161      case ENET_EVENT_TYPE_RECEIVE:
    162         COUT(5) << "Cl.Con: receiver-Thread: got new packet" << std::endl;
    163         processData(&event);
     162        COUT(5) << "Cl.Con: receiver-Thread while loop: got new packet" << std::endl;
     163        if ( !processData(&event) ) COUT(2) << "Current packet was not pushed to packetBuffer -> ev ongoing SegFault" << std::endl;
    164164        break;
    165165      case ENET_EVENT_TYPE_DISCONNECT:
     
    201201  bool ClientConnection::establishConnection() {
    202202    ENetEvent event;
    203     // connect to peer
     203    // connect to peer (server is type ENetPeer*)
    204204    server = enet_host_connect(client, &serverAddress, NETWORK_CLIENT_CHANNELS);
    205205    if(server==NULL)
Note: See TracChangeset for help on using the changeset viewer.