From 0898066430e0f2908565a1b4588e50de2d41a256 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Fri, 28 Jul 2017 22:01:04 +0200 Subject: Break out Package read/write --- src/monitor.hh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/monitor.hh') diff --git a/src/monitor.hh b/src/monitor.hh index 6c2a557..7c6cc40 100644 --- a/src/monitor.hh +++ b/src/monitor.hh @@ -7,6 +7,8 @@ #include #include +#include "package.hh" + class Looper; class Resolver; @@ -23,16 +25,6 @@ public: ATTACHED, }; - struct Package { - uint32_t id; - struct timespec timestamp; - uint16_t flags; - std::string source_host; - uint16_t source_port; - std::string target_host; - uint16_t target_port; - }; - class Delegate { public: virtual ~Delegate() {} -- cgit v1.2.3-70-g09d2