#define BLANK_NET_PACKET_HPP_
#include <cstdint>
+#include <string>
namespace blank {
static constexpr std::uint32_t TAG = 0xFB1AB1AF;
enum Type {
- PING,
+ PING = 0,
+ LOGIN = 1,
};
struct Header {
void Tag() noexcept;
std::size_t Ping() noexcept;
+ std::size_t Login(const std::string &name) noexcept;
};