Closed nivex closed 2 years ago
ah, it looks like a missing pointer dereference:
- memcpy ( addr, ptr->ai_addr, ptr->ai_addrlen);
+ memcpy ( &addr, ptr->ai_addr, ptr->ai_addrlen);
It compiles, but now on run I get:
DarkIce: TcpSocket.cpp:251: connect error [97]
Error 97 is "Address family not supported by protocol". There's a hard coded AF_INET
on line 235 that seems to be the culprit.
When specifying a hostname in my darkice.cfg that only has an AAAA record:
When I look at the noted line, I see it is in the
#else
clause of a#ifdef HAVE_ADDRINFO
. There is noHAVE_ADDRINFO
flag that I can find. It looks likeHAVE_GETADDRINFO
was meant. Unfortunately my attempts at fixing things up still don't get a clean compile:There's a lot of noise about C++11 deprecations, but I believe this is the relevant error:
This is about the limits of what I remember from C++ in college. Hopefully someone more knowledgeable can take it from here.