diff --git a/slsReceiverSoftware/src/CommandLineOptions.cpp b/slsReceiverSoftware/src/CommandLineOptions.cpp index 70606c73a..5c18458c4 100644 --- a/slsReceiverSoftware/src/CommandLineOptions.cpp +++ b/slsReceiverSoftware/src/CommandLineOptions.cpp @@ -7,11 +7,15 @@ #include "sls/ToString.h" #include "sls/logger.h" +#define MAX_RECEIVERS 1024 + ParsedOptions parseCommandLine(AppType app, int argc, char* argv[]) { CommonOptions base; base.port = DEFAULT_TCP_RX_PORTNO; MultiReceiverOptions multi; FrameSyncOptions frame; + uint16_t numReceivers = 1; + bool optionalArg = false; int opt; int option_index = 0; @@ -31,6 +35,7 @@ ParsedOptions parseCommandLine(AppType app, int argc, char* argv[]) { static struct option multi_opts[] = { {"callback", no_argument, nullptr, 'c'}, + {"rx_tcpport", required_argument, nullptr, 't'}, {"num-receivers", required_argument, nullptr, 'n'}, {nullptr, 0, nullptr, 0} }; @@ -44,7 +49,7 @@ ParsedOptions parseCommandLine(AppType app, int argc, char* argv[]) { std::vector