1 #ifndef BLANK_NET_CONNECTION_HPP_
2 #define BLANK_NET_CONNECTION_HPP_
4 #include "../app/IntervalTimer.hpp"
14 explicit Connection(const IPaddress &);
16 const IPaddress &Address() const noexcept { return addr; }
18 bool Matches(const IPaddress &) const noexcept;
20 void FlagSend() noexcept;
21 void FlagRecv() noexcept;
23 bool ShouldPing() const noexcept;
24 bool TimedOut() const noexcept;
29 void SendPing(UDPpacket &, UDPsocket);
31 void Send(UDPpacket &, UDPsocket);
35 IntervalTimer send_timer;
36 IntervalTimer recv_timer;