Top-posting moved. Please don't.
MegaBrutal wrote:
2015-03-20 4:14 GMT+01:00 MegaBrutal <megabru...@gmail.com>:
Hi all,
I'm working on an cross-platform application with DNS resolution with
IPv6 support, but I can't really get around how should I handle IP
version independent DNS resolution. After some searching, I see
getaddrinfo might be a convenient solution, since it is implemented on
multiple platforms, as it is POSIX-standard. Windows and Linux both
have it.
Which unit should I link on Windows and Linux to get getaddrinfo? On
Linux, I managed to link it through cnetdb, though probably there is a
better way. On Windows, I tried Windows, WinSock and WinSock2, but
neither has it.
I also need some help with using the function, as it works very
strangely on Linux, as it returns addrinfo structures, but the ai_addr
member is always a null-pointer, which is theoretically impossible by
the manual, in my understanding.
Though if you have a better idea for cross-platform and IP version
independent network handling with Free Pascal, I'm all ears!
> Hi,
>
> Can anyone help me with this?
I don't know to what extent the core developers are using IP6, so
there's always a possibility that there are undetected problems.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal