From 09b7e077f10fe324774f759086f3596947d69b19 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 6 Aug 2018 18:35:13 +0200 Subject: Send multiple packets in one system call --- src/DetectorModule/DetectorModule.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/DetectorModule/DetectorModule.h') diff --git a/src/DetectorModule/DetectorModule.h b/src/DetectorModule/DetectorModule.h index afe4d04..f959857 100644 --- a/src/DetectorModule/DetectorModule.h +++ b/src/DetectorModule/DetectorModule.h @@ -27,7 +27,7 @@ public: private: std::vector buffer_; - std::vector sendBuffer_; + std::vector> sendBuffer_; int detectorID_; UDPClient client_; @@ -40,12 +40,16 @@ private: unsigned int numberOfFrames_; std::string path_, fileName_, fileEnding_; + unsigned int max_packets_; std::size_t index_; + std::size_t ips_; + std::size_t counter_; + std::chrono::high_resolution_clock::time_point ts_; unsigned short partID_{0}; auto readConfig(const std::string& configFile) -> bool; auto readInput() -> void; - auto send() -> void; + auto send(int packets) -> void; }; -- cgit v1.2.3