summaryrefslogtreecommitdiffstats
path: root/src/main_client.cpp
diff options
context:
space:
mode:
authorTobias Frust <tobiasfrust@gmail.com>2016-10-13 10:27:01 +0200
committerGitHub <noreply@github.com>2016-10-13 10:27:01 +0200
commita38a5f1b646cdc992c3b602330a41036bc9bf7b1 (patch)
tree7fc93e5f5c3729d0fa013946fe60fa881a53579c /src/main_client.cpp
parent8af3d595e2856f81a46a91d67e96f53cb3b25d0f (diff)
parentcdab7a0b05f655a2f98f00f3fb8928e54b8c28d2 (diff)
downloadods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.gz
ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.bz2
ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.tar.xz
ods-a38a5f1b646cdc992c3b602330a41036bc9bf7b1.zip
Merge pull request #2 from tobiasfrust/master
Merge of the DetectorSimulator
Diffstat (limited to 'src/main_client.cpp')
-rw-r--r--src/main_client.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main_client.cpp b/src/main_client.cpp
index 2b9927d..e97e911 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;
@@ -34,9 +36,9 @@ int main (int argc, char *argv[]){
std::cout << "Sending UDP packages: " << std::endl;
auto configPath = std::string { "config.cfg" };
- std::string address = "127.0.0.1";
+ std::string address = "10.0.0.10";
- Detector detector{address, configPath, intervall};
+ Detector detector{address, configPath, intervall, packetSize};
//DetectorModule detModule0 = DetectorModule(1, address, configPath);