ЭЛЕКТРОННАЯ БИБЛИОТЕКА КОАПП |
Сборники Художественной, Технической, Справочной, Английской, Нормативной, Исторической, и др. литературы. |
3.2.47 gethostbyaddrgethostbyaddr This function does the same thing as gethostbyaddr(3): it translates a packed binary network address to its corresponding names (and alternate addresses). The return value in list context is: ($name, $aliases, $addrtype, $length, @addrs) where
($a, $b, $c, $d) = unpack('C4', $addrs[0]); In scalar context, gethostbyaddr returns only the host name. See the section on "Sockets" in Chapter 6 for another approach. |