1 #ifndef BLANK_NET_CLIENT_HPP_
2 #define BLANK_NET_CLIENT_HPP_
4 #include "Connection.hpp"
18 std::string host = "localhost";
23 explicit Client(const Config &);
30 Connection &GetConnection() noexcept { return conn; }
31 const Connection &GetConnection() const noexcept { return conn; }
33 std::uint16_t SendPing();
34 std::uint16_t SendLogin(const std::string &);
35 std::uint16_t SendPart();
36 std::uint16_t SendPlayerUpdate(const Entity &);
39 void HandlePacket(const UDPpacket &);
43 UDPsocket client_sock;
44 UDPpacket client_pack;