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

@@ -59,8 +59,8 @@ public:
virtual void close();
private:
in_addr m_rptAddress;
unsigned int m_rptPort;
sockaddr_storage m_rptAddress;
unsigned int m_rptAddrLen;
unsigned int m_id;
unsigned char* m_netId;
bool m_debug;