NAME
Net::SockAddr::Inet4 - IPv4 sockaddr
SYNOPSIS & DESCRIPTION
See Net::SockAddr
METHODS
new($ip, $port) [CLASS METHOD]
Creates object from ip in human-readable form and port. Dies if $ip
is not a valid IPv4 address
from_addr($addr, $port) [FUNCTION]
Creates object from binary IPv4 address (4-byte string) and port.
my $addr = Socket::inet_aton('127.0.0.1');
my $sa = Net::SockAddr::Inet4::from_addr($addr, $port);
ip()
Returns ip in human-readable form
port()
Returns port
addr()
Return ip in binary form (4-byte string)
AUTHOR
Pronin Oleg <syber@crazypanda.ru>
Crazy Panda LTD
LICENSE
You may distribute this code under the same terms as Perl itself.