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?
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.
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