18#ifndef HEADER_SERVER_LOOP_HPP
19#define HEADER_SERVER_LOOP_HPP
38 std::atomic_bool m_abort;
40 std::atomic<uint16_t> m_port;
42 std::atomic<uint32_t> m_server_online_id;
52 m_prev_time = m_curr_time = 0;
54 m_server_online_id = 0;
58 void abort() { m_abort =
true; }
59 bool isAborted()
const {
return m_abort; }
60 uint16_t getPort()
const {
return m_port; }
61 uint32_t getServerOnlineId()
const {
return m_server_online_id; }
Definition: child_loop.hpp:34
void abort()
Set the abort flag, causing the mainloop to be left.
Definition: child_loop.hpp:58
Definition: child_loop.hpp:26
Declares the general types that are used by the network.