summaryrefslogtreecommitdiff
path: root/minion/src/network_connection.cpp
blob: 3d201135ed3fc8021c0a2abd4e4fee62b4f960b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "network_connection.hpp"

NetworkConnection::NetworkConnection(int8_t connection_id) noexcept
	: _id(connection_id), _is_closed(false)
{
}

auto NetworkConnection::id() const noexcept -> int8_t
{
	return _id;
}

auto NetworkConnection::is_closed() const noexcept -> bool
{
	return _is_closed;
}

void NetworkConnection::set_is_closed(bool is_closed) noexcept
{
	_is_closed = is_closed;
}