xbot/ping_thread.hpp

16 lines
334 B
C++
Raw Normal View History

2023-11-25 09:22:55 -08:00
#pragma once
#include "connection.hpp"
#include "thread.hpp"
class PingThread : public Thread
{
Connection * connection_;
public:
PingThread(Connection * connection) noexcept;
auto priority() const -> priority_type override;
auto on_event(Event const& event) -> std::pair<ThreadOutcome, EventOutcome> override;
};