summaryrefslogtreecommitdiff
path: root/src/monitor.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-07-28 22:01:04 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-07-28 22:01:30 +0200
commit0898066430e0f2908565a1b4588e50de2d41a256 (patch)
tree14cdd602923c0989856faaeaf33352c24c80f440 /src/monitor.hh
parent6bdda0ebabcd8dc34edfc413de6d0424ccf1f6e6 (diff)
Break out Package read/write
Diffstat (limited to 'src/monitor.hh')
-rw-r--r--src/monitor.hh12
1 files changed, 2 insertions, 10 deletions
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 <memory>
#include <string>
+#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() {}