Commit 76ee48cc authored by Gero Hülsbusch's avatar Gero Hülsbusch
Browse files

Update get_addresses.c

parent 5702c53b
......@@ -5,7 +5,8 @@
Schreiben Sie ein Programm getaddresses, das einen Hostnamen als Argument akzeptiert und alle zugeho ̈rigen IP-Adressen (IPv4 und IPv6) ausgibt. Benutzen Sie dabei getaddrinfo() und getnameinfo().
Was ist der Unterschied von inet ntop() und getnameinfo() bei link- lokalen IPv6 Adressen?
int_ntop
int_ntop https://man7.org/linux/man-pages/man3/inet_ntop.3.html
This function converts the network address structure src in the
af address family into a character string. The resulting string
is copied to the buffer pointed to by dst, which must be a non-
......@@ -30,7 +31,7 @@ int_ntop
address. The buffer dst must be at least INET6_ADDRSTRLEN
bytes long.
getnameinfo
getnameinfo https://man7.org/linux/man-pages/man3/getnameinfo.3.html
The getnameinfo() function is the inverse of getaddrinfo(3): it
converts a socket address to a corresponding host and service, in
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment