replace sockaddr_in -> sockaddr_storage to support IPv6

This commit is contained in:
SASANO Takayoshi
2019-10-23 12:04:06 +09:00
parent 47bc9c5bcd
commit 249bae1e7b
6 changed files with 122 additions and 108 deletions

View File

@@ -58,14 +58,14 @@ public:
void close();
private:
in_addr m_address;
unsigned int m_port;
uint8_t* m_id;
std::string m_password;
std::string m_name;
const char* m_version;
bool m_debug;
CUDPSocket m_socket;
sockaddr_storage m_address;
unsigned int m_addrlen;
uint8_t* m_id;
std::string m_password;
std::string m_name;
const char* m_version;
bool m_debug;
CUDPSocket m_socket;
enum STATUS {
WAITING_CONNECT,