uint32_t IP() const { return *(uint32_t *)(&m_addr.sin_addr); }
uint16_t Port() const { return ntohs(m_addr.sin_port); }
- std::string endpoint() const { return inet_ntostring(IP()) + ":" + x2str(Port()); }
+ std::string endpoint() const { return inet_ntostring(IP()) + ":" + std::to_string(Port()); }
bool Read();