diff options
Diffstat (limited to 'src/main_client.cpp')
-rw-r--r-- | src/main_client.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main_client.cpp b/src/main_client.cpp index 2b9927d..19f366e 100644 --- a/src/main_client.cpp +++ b/src/main_client.cpp @@ -19,13 +19,15 @@ void initLog() { int main (int argc, char *argv[]){ - if(argc < 2){ - BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorClient <images_per_second>!"; + if(argc < 3){ + BOOST_LOG_TRIVIAL(error) << "Program usage: ./onlineDetectorSimulatorClient <images_per_second> <packet_size_in_byte>!"; return 0; } int imagesPerSec = std::stoi(argv[1]); + int packetSize = std::stoi(argv[2]); + double timegap = 1./(double)imagesPerSec; unsigned int intervall = timegap*1000*1000; @@ -36,7 +38,7 @@ int main (int argc, char *argv[]){ auto configPath = std::string { "config.cfg" }; std::string address = "127.0.0.1"; - Detector detector{address, configPath, intervall}; + Detector detector{address, configPath, intervall, packetSize}; //DetectorModule detModule0 = DetectorModule(1, address, configPath); |