Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2007, 1:41:53 AM (17 years ago)
Author:
nicolasc
Message:

some cleanups
eNet code is currently enet-1.1 compatible (incompatible enet-1.0!)

Location:
code/branches/merger/src/network
Files:
2 edited

Legend:

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

    r297 r298  
    132132  bool ClientConnection::disconnectConnection(){
    133133    ENetEvent event;
    134     enet_peer_disconnect(server);
    135     //enet_peer_disconnect(server, 0);
     134//     enet_peer_disconnect(server);
     135    enet_peer_disconnect(server, 0);
    136136    while(enet_host_service(client, &event, NETWORK_WAIT_TIMEOUT) > 0){
    137137      switch (event.type)
  • code/branches/merger/src/network/dummyclient.cc

    r297 r298  
    7171
    7272        // now disconnect
    73   enet_peer_disconnect (peer);
    74 //  enet_peer_disconnect (peer, 0);
     73//   enet_peer_disconnect (peer);
     74  enet_peer_disconnect (peer, 0);
    7575        // 3 seconds timeout
    7676  while(enet_host_service(client, &event, 3000) > 0){
Note: See TracChangeset for help on using the changeset viewer.