[Positioning] Add options tcpevaal-{host,port}
Add options output.tcpevaal-host and output.tcpevaal-port, with localhost:4444 as default values, as recommended by the organisers.
This commit is contained in:
parent
593da5e422
commit
42bcef2c0e
|
@ -100,7 +100,10 @@ void Output::initialise_output_udp_socket()
|
|||
|
||||
void Output::initialise_output_tcpevaal_socket()
|
||||
{
|
||||
output_media.push_back(new OutputTCPSocketEvAAL) ;
|
||||
output_media.push_back(
|
||||
new OutputTCPSocketEvAAL(
|
||||
Configuration::string_value("output.tcpevaal-host"),
|
||||
Configuration::int_value("output.tcpevaal-port"))) ;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,8 +35,8 @@ protected:
|
|||
//@}
|
||||
|
||||
public:
|
||||
OutputTCPSocketEvAAL(const std::string &_remote_host = "127.0.0.1",
|
||||
const uint_fast16_t _remote_port = 4444) ;
|
||||
OutputTCPSocketEvAAL(const std::string &_remote_host,
|
||||
const uint_fast16_t _remote_port) ;
|
||||
~OutputTCPSocketEvAAL(void) ;
|
||||
|
||||
/** @name Operations */
|
||||
|
|
|
@ -17,6 +17,9 @@ namespace po = boost::program_options ;
|
|||
#define DEFAULT_CONFIG_FILE_NAME \
|
||||
"/usr/local/etc/owlps/owlps-positioning.cfg"
|
||||
|
||||
#define DEFAULT_TCPEVAAL_HOST "127.0.0.1"
|
||||
#define DEFAULT_TCPEVAAL_PORT 4444
|
||||
|
||||
|
||||
|
||||
/* *** Constructors *** */
|
||||
|
@ -251,6 +254,12 @@ void UserInterface::fill_output_options()
|
|||
("output.udp-port", po::value<int>()
|
||||
->default_value(MOBILE_DEFAULT_PORT),
|
||||
"Port on which the UDP data is sent (when output.medium = UDP).")
|
||||
("output.tcpevaal-host", po::value<string>()
|
||||
->default_value(DEFAULT_TCPEVAAL_HOST),
|
||||
"Host to which the TCP data is sent (when output.medium = TCPEvAAL).")
|
||||
("output.tcpevaal-port", po::value<int>()
|
||||
->default_value(DEFAULT_TCPEVAAL_PORT),
|
||||
"Port on which the TCP data is sent (when output.medium = TCPEvAAL).")
|
||||
;
|
||||
|
||||
file_options->add(options) ;
|
||||
|
|
Loading…
Reference in New Issue