I have a program that uses gethostbyname (on Windows) to convert an IP address to a host name.
But it only works for IPv4 ...
What is the correct replacement for IPv6?
Thanks.
A search for gethostbyname on MSDN tells us that it is outdated, and we should look at getaddrinfo , which has all the features to work with other addressed families.
Or, if you make an address to name the translation, you will get into getnameinfo
Use getaddrinfo , which devalues ββthe old gethostbyname function.
getaddrinfo
gethostbyname
Source: https://habr.com/ru/post/1306345/More articles:WPF Animation and Slide / Drag - c #The grouping of the output signals of the neural network 0.5? - neural-networkProblem in the slideDown () function of the Gquery function - jqueryHow can I access global variables inside PHPUnit 3.4.9? - scopeC # WPF Binding XAML to DataTable - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1306346/drupal-6-views-2-is-it-possible-to-have-a-filter-that-only-applies-to-registered-users&usg=ALkJrhi_dKav29B5FlMiDs_JUeSy_slJnQCreate a simple template control. Having problems - c #why don't include () allow setcookie to work? - phpThe most useful Explorer shell extensions - windowsRendering an XML document with multiple languages ββ- xmlAll Articles