1 #ifndef AKTUALIZR_SECONDARY_TCP_SERVER_H_
2 #define AKTUALIZR_SECONDARY_TCP_SERVER_H_
4 #include "utilities/utils.h"
17 enum class ExitReason {
24 in_port_t port = 0,
bool reboot_after_install =
false);
36 in_port_t port()
const;
37 ExitReason exit_reason()
const;
40 bool HandleOneConnection(
int socket);
45 std::atomic<bool> keep_running_;
46 bool reboot_after_install_;
47 ExitReason exit_reason_{ExitReason::kNotApplicable};
50 #endif // AKTUALIZR_SECONDARY_TCP_SERVER_H_