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