diff options
-rw-r--r-- | doc/example.mux | 17 | ||||
-rw-r--r-- | src/ParserConfigfile.cpp | 5 |
2 files changed, 18 insertions, 4 deletions
diff --git a/doc/example.mux b/doc/example.mux index ac6842e..eed3c11 100644 --- a/doc/example.mux +++ b/doc/example.mux @@ -32,6 +32,23 @@ general { ; Enable timestamp definition necessary for SFN ; This also enables time encoding using the MNSC. tist false + + ; The statsserver is a simple TCP server that can present + ; statistics data (buffers, overruns, underruns, etc) + ; which can then be graphed a tool like Munin + ; The doc/stats_dabmux_multi.py tool is a suitable + ; plugin for that. + ; If the port is zero, or the line commented, the server + ; is not started. + statsserverport 12720 +} + +remotecontrol { + ; enable the telnet remote control server on the given port + ; This server allows you to read and define parameters that + ; some features export + ; Set the port to 0 to disable the server + telnetport 12721 } ; Some ensemble parameters diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index df83df7..3ac6537 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -190,10 +190,7 @@ void parse_configfile(string configuration_file, /************** READ REMOTE CONTROL PARAMETERS *************/ ptree pt_rc = pt.get_child("remotecontrol"); - int telnetport = 0; - if (pt_rc.get("telnet", 0)) { - telnetport = pt_rc.get<int>("port", 0); - } + int telnetport = pt_rc.get<int>("telnetport", 0); if (telnetport != 0) { rc = new RemoteControllerTelnet(telnetport); |