Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7749 in orxonox.OLD for branches


Ignore:
Timestamp:
May 21, 2006, 11:57:44 AM (19 years ago)
Author:
rennerc
Message:

added commandline argument to open network log console

Location:
branches/network/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_log.cc

    r7748 r7749  
    207207    if ( SDLNet_TCP_Send( *it, buf, strlen( buf) ) < strlen( buf ) )
    208208    {
     209      SDLNet_TCP_Close( *it );
    209210      std::list<TCPsocket>::iterator delIt = it;
    210211      it++;
  • branches/network/src/lib/network/network_manager.cc

    r7680 r7749  
    2828#include "shared_network_data.h"
    2929#include "network_stream.h"
     30#include "preferences.h"
     31#include "network_log.h"
    3032
    3133
     
    5355  this->sharedNetworkData = SharedNetworkData::getInstance();
    5456  this->elapsedTime = 0.0f;
     57 
     58   
     59  int port = Preferences::getInstance()->getInt( "network", "telnetport", 0 );
     60 
     61  if ( port > 0 )
     62    NetworkLog::getInstance()->listen( port );
    5563
    5664  PRINTF(0)("NetworkManager created\n");
     
    7381  this->netStreamList = ClassList::getList(CL_SYNCHRONIZEABLE);
    7482  PRINTF(0)("NetworkManager initzalized\n");
     83
    7584}
    7685
  • branches/network/src/lib/network/synchronizeable.cc

    r7731 r7749  
    326326void Synchronizeable::registerVar( SynchronizeableVar * var )
    327327{
    328   PRINTF(0)("ADDING var: %s (%s)\n", var->getName().c_str(), this->getName() );
    329328  syncVarList.push_back( var );
    330329}
     
    338337int Synchronizeable::registerVarId( SynchronizeableVar * var )
    339338{
    340   PRINTF(0)("ADDING var: %s (%s)\n", var->getName().c_str(), this->getName() );
    341339  syncVarList.push_back( var );
    342340  var->setWatched( true );
  • branches/network/src/orxonox.cc

    r7374 r7749  
    8484REGISTER_ARG_ARG(  _, music_volume, "audio", "Music-Volume", "Sets music volume", "vol" );
    8585REGISTER_ARG_ARG(  _, effects_volume, "audio", "Effects-Volume", "Sets effects volume", "vol" );
     86
     87REGISTER_ARG_ARG(  t, telnetport,  "network","telnetport",        "Port to use for network debug output",               "port" );
    8688
    8789/**
Note: See TracChangeset for help on using the changeset viewer.