Hi, I’m converting my app to work with IPv6 addresses but I notice the connection fails after a call to gethostbyname in connectSocket.
I’ve been looking at the documentation and it looks like this should really be changed to gethostbyaddr which supports ipv6.
Just wondering if anyone has experience in doing this or if there is already another accepted method of doing this in Juce before I go ahead and change the code?
Just downloaded the latest tip. Maybe I’m missing a setting but I don’t think Win7 VS2010 is liking this:
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(263): error C3861: ‘getaddrinfo’: identifier not found
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(271): error C3861: ‘freeaddrinfo’: identifier not found
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(281): error C3861: ‘freeaddrinfo’: identifier not found
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(285): error C3861: ‘freeaddrinfo’: identifier not found
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(292): error C2446: ‘==’ : no conversion from ‘int’ to 'addrinfo *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\users\gman\dev\git\juce\src\io\network\juce_socket.cpp(292): error C2040: ‘==’ : ‘addrinfo *’ differs in levels of indirection from 'int’
juce_URL.cpp