February 2012
Intermediate to advanced
1184 pages
37h 17m
English
getpeername SOCKETThis function returns the packed socket address of the other
end of the SOCKET connection. For
example:
use Socket; $hersockaddr = getpeername SOCK; ($port, $heraddr) = sockaddr_in($hersockaddr); $herhostname = gethostbyaddr($heraddr, AF_INET); $herstraddr = inet_ntoa($heraddr);