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

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

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

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

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