Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2008, 1:44:44 PM (16 years ago)
Author:
scheusso
Message:

some speed enhancements regarding to mutexes in enet send/receive mechanisms

File:
1 edited

Legend:

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

    r1494 r1499  
    153153    if(!isConnected)
    154154      return false;
    155     if(client_connection.addPacket(pck_gen.chatMessage( message.c_str() )))
    156       return client_connection.sendPackets();
     155    return client_connection.addPacket(pck_gen.chatMessage( message.c_str() ));
     156      //return client_connection.sendPackets();
    157157    // send packets
    158158    return false;
    159   }
    160 
    161 
    162   /**
    163   * Sends out all the packets queued by addXXX
    164   */
    165   bool Client::sendPackets(){
    166     if(!isConnected)
    167       return false;
    168     // send packets
    169     client_connection.sendPackets();
    170     return true;
    171159  }
    172160
     
    215203    }// otherwise we had no gamestate to load
    216204    gamestate.cleanup();
    217     if(!client_connection.sendPackets())
    218       COUT(3) << "Problem sending packets to server" << std::endl;
     205    /*if(!client_connection.sendPackets())
     206      COUT(3) << "Problem sending packets to server" << std::endl;*/
    219207    return;
    220208  }
Note: See TracChangeset for help on using the changeset viewer.