Creates a L<Sys::Socket::Sockaddr::In|SPVM::Sys::Socket::Sockaddr::In> object givena port $portand a L<Sys::Socket::In_addr|SPVM::Sys::Socket::In_addr> object $in_addr, and returns it.
The address family is set to C<AF_INET>.
Exceptions:
$in_addrmust be defined. Otherwise an exception is thrown.
Creates a L<Sys::Socket::Sockaddr::In6|SPVM::Sys::Socket::Sockaddr::In6> object givena port $portand a L<Sys::Socket::In6_addr|SPVM::Sys::Socket::In6_addr> object $in_addr, and returns it.
The address family is set to C<AF_INET6>.
Exceptions:
$in6_addrmust be defined. Otherwise an exception is thrown.