Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 4:23:29 PM (16 years ago)
Author:
dumenim
Message:

some changes on clientside (replaces some enet_host_service with enet_host_flush and so on)

File:
1 edited

Legend:

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

    r1360 r1377  
    122122      COUT(3) << "sending connectrequest" << std::endl;
    123123      if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets())
    124         COUT(1) << "could not create connection" << std::endl;
     124        COUT(1) << "could not send connection request !!!!!!!!!" << std::endl;
    125125    }else
    126       COUT(1) << "could not create connection" << std::endl;
     126      COUT(1) << "could not create connection laber" << std::endl;
    127127    return isConnected;
    128128  }
     
    216216    if(!isConnected)
    217217      return false;
    218     ENetEvent event;
    219     // send packets
    220     client_connection.sendPackets(&event);
    221     if(event.type==ENET_EVENT_TYPE_NONE)
    222       return true;
    223     else
    224       return false;
     218    // send packets
     219    client_connection.sendPackets();
     220    return true;
    225221  }
    226222
Note: See TracChangeset for help on using the changeset viewer.