From 39e2964b0315faeac0c9f8431334ba10093b9490 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 14 May 2022 12:57:01 +0200 Subject: refactor(minion): create network connection class --- minion/src/network_connection.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 minion/src/network_connection.hpp (limited to 'minion/src/network_connection.hpp') diff --git a/minion/src/network_connection.hpp b/minion/src/network_connection.hpp new file mode 100644 index 0000000..89094b8 --- /dev/null +++ b/minion/src/network_connection.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include + +class NetworkConnection +{ +public: + NetworkConnection(int8_t id) noexcept; + + int8_t id() const noexcept; + + bool is_closed() const noexcept; + + void set_is_closed(bool is_closed) noexcept; + +private: + const int8_t _id; + bool _is_closed; +}; -- cgit v1.2.3-18-g5258