blob: 4cefb3971dbb5114446d479577c6efa279c6cdac (
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:
explicit NetworkConnection(int8_t connection_id) noexcept;
auto id() const noexcept -> int8_t;
auto is_closed() const noexcept -> bool;
void set_is_closed(bool is_closed) noexcept;
private:
const int8_t _id;
bool _is_closed;
};
|