my $packed_binary_addr = gethostbyname( 'tyndall.itcarlow.ie' ); my $ip_addr = inet_ntoa( $packed_binary_addr ); print "tyndall's IP address is: $ip_addr\n"; my $ip_name = gethostbyaddr( $packed_binary_addr, AF_INET ); print "$ip_addr has the follow
Functions: socket() -- create a new socket object socketpair() -- create a pair of new socket objects [*] fromfd() -- create a socket object from an open file descr iptor [*] fromshare() -- create a socket object from data received from socket.share