Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 4:35:11 PM (16 years ago)
Author:
scheusso
Message:

added command line argument —port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/Orxonox.cc

    r1362 r1379  
    170170    timefactor_(1.0f),
    171171    mode_(STANDALONE),
    172     serverIp_("")
     172    serverIp_(""),
     173    serverPort_(NETWORK_PORT)
    173174  {
    174175  }
     
    244245    ar.checkArgument("data", dataPath, false);
    245246    ar.checkArgument("ip", serverIp_, false);
     247    ar.checkArgument("port", serverPort_, false);
    246248    if(ar.errorHandling())
    247249      return false;
     
    357359    ib->registerListener(console, &Testconsole::execute, '\r', false);
    358360    ib->registerListener(console, &Testconsole::hintandcomplete, '\t', true);
    359     ib->registerListener(console, &Testconsole::clear, '§', true);
     361    ib->registerListener(console, &Testconsole::clear, '', true);
    360362    ib->registerListener(console, &Testconsole::removeLast, '\b', true);
    361363    ib->registerListener(console, &Testconsole::exit, (char)0x1B, true);
     
    365367    ib->registerListener(orxonoxConsole_, &InGameConsole::execute, '\r', false);
    366368    ib->registerListener(orxonoxConsole_, &InGameConsole::hintandcomplete, '\t', true);
    367     ib->registerListener(orxonoxConsole_, &InGameConsole::clear, '§', true);
     369    ib->registerListener(orxonoxConsole_, &InGameConsole::clear, '', true);
    368370    ib->registerListener(orxonoxConsole_, &InGameConsole::removeLast, '\b', true);
    369371    ib->registerListener(orxonoxConsole_, &InGameConsole::exit, (char)0x1B, true);
     
    379381    COUT(2) << "Loading level in server mode" << std::endl;
    380382
    381     server_g = new network::Server();
     383    server_g = new network::Server(serverPort_);
    382384
    383385    if (!loadScene())
     
    399401      client_g = network::Client::createSingleton();
    400402    else
    401       client_g = network::Client::createSingleton(serverIp_, NETWORK_PORT);
     403     
     404      client_g = network::Client::createSingleton(serverIp_, serverPort_);
    402405
    403406    client_g->establishConnection();
Note: See TracChangeset for help on using the changeset viewer.