summaryrefslogtreecommitdiff
path: root/minion/src/network_connection.hpp
blob: 89094b82b04ccd47183ec3c2b06fc58dcf722316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};