diff options
Diffstat (limited to 'minion/src/network_connection.hpp')
-rw-r--r-- | minion/src/network_connection.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
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 <stdint.h> + +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; +}; |