OSDN Git Service

ちょっとだけ弄った。一旦コミット ipv6
authoreru <eru01@users.sourceforge.jp>
Thu, 3 Mar 2011 17:00:58 +0000 (02:00 +0900)
committereru <eru01@users.sourceforge.jp>
Thu, 3 Mar 2011 17:00:58 +0000 (02:00 +0900)
core/common/servmgr.cpp
core/win32/wsocket.cpp

index 29be937..16b295b 100644 (file)
@@ -145,7 +145,9 @@ ServMgr::ServMgr()
 
        // retrieve newest version number from DNS
        // for windows ONLY. Linux or other OS is NOT supported.
-#ifdef WIN32
+//#ifdef WIN32
+       // IPv6 is NOT supported yet.
+#if 0 addrinfo
        {
                struct hostent *he;
 
index 509ba07..a348ce8 100644 (file)
@@ -56,7 +56,7 @@ bool ClientSocket::getHostname(char *str,size_t size,unsigned int ip) //JP-MOD
        if(size == 0)
                return false;
 
-       HOSTENT *he;
+       addrinfo *he;
 
        ip = htonl(ip);