Use getaddrinfo & getnameinfo
authorMegaBrutal <code+git@megabrutal.com>
Fri, 26 Oct 2018 15:15:55 +0000 (17:15 +0200)
committerMegaBrutal <code+git@megabrutal.com>
Fri, 26 Oct 2018 15:15:55 +0000 (17:15 +0200)
commit443339e2756df295317b7136b3262e368fdb9bfa
tree72c6107146566ab576442ca01e37917ebe0de3aa
parent29de169741b074ce9158bce94f0b8db5088cdcf2
Use getaddrinfo & getnameinfo

Use getaddrinfo and getnameinfo API functions for DNS resolutions
instead of the deprecated gethostbyname and gethostbyaddr functions.

This is in preparation to IPv6 support, as getaddrinfo and getnameinfo
are agnostic to address family.

modified:   DNSResolve.pas
modified:   MgSMTP.pas
modified:   Network.pas
DNSResolve.pas
MgSMTP.pas
Network.pas