1 #ifndef BLANK_NET_CLIENTCONNECTION_HPP_
2 #define BLANK_NET_CLIENTCONNECTION_HPP_
4 #include "Connection.hpp"
5 #include "ConnectionHandler.hpp"
15 class ClientConnection
16 : public ConnectionHandler {
19 explicit ClientConnection(Server &, const IPaddress &);
22 bool Matches(const IPaddress &addr) const noexcept { return conn.Matches(addr); }
26 Connection &GetConnection() noexcept { return conn; }
27 bool Disconnected() const noexcept { return conn.Closed(); }
29 void AttachPlayer(Entity &);
32 void On(const Packet::Login &) override;
33 void On(const Packet::Part &) override;