38.107.191.112 |    

Navigation

Google Advertisement

Die Funktion gethostbyaddr ermittelt den Hostnamen für eine gegebene IP-Adresse. Als Rückgabewert wird als String der Hostname oder unknown zurück gegeben.

gethostbyaddr
  1. sub gethostname {
  2.  
  3. use Socket;
  4. my ($adr) = @_;
  5. my ($iadr) = inet_aton($adr);
  6. my ($name, $aliases, $adrtype, $net) = gethostbyaddr($iadr, AF_INET);
  7. return $name;
  8.  
  9. }
Parsed in 0.015 seconds at 11.14 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 2 users online.

Tags Cloud

Latest snippets
urlencode
(Perl::Function)
gethostbyaddr
(Perl::Function)
create_function
(JavaScript::Snippets)
function_exists
(JavaScript::Snippets)
listing
(PHP::Function)
runPhpCode
(PHP::Function)
md5
(Bash::Function)
rtrim
(Bash::Function)
ltrim
(Bash::Function)
function_exists
(Bash::Function)