saru has asked for the wisdom of the Perl Monks concerning the following question:
Program :
use IO::Socket;
use IO::Socket::INET6;
use Socket qw(inet_ntoa);
use Socket6 (
qw(AI_PASSIVE inet_ntop inet_pton getaddrinfo
sockaddr_in6 pack_sockaddr_in6 unpack_sockaddr_in6
unpack_sockaddr_in6_all pack_sockaddr_in6_all)
);
my $client1 = new IO::Socket
(
Domain => AF_INET6,
Proto => 'udp'
);
my $src1 = sockaddr_in6(0,inet_pton(AF_INET6,'fed0::87'));
my $retVal1 = bind $client1,$src1;
print "Failed to bind\n" if !$retVal;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using sockaddr_in6 (bind)
by marto (Cardinal) on Aug 26, 2010 at 11:17 UTC | |
by saru (Initiate) on Aug 26, 2010 at 11:26 UTC | |
|
Re: Using sockaddr_in6 (bind)
by roboticus (Chancellor) on Aug 26, 2010 at 10:33 UTC | |
|
Re: Using sockaddr_in6 (bind)
by Anonymous Monk on Aug 26, 2010 at 07:35 UTC | |
by saru (Initiate) on Aug 26, 2010 at 08:41 UTC |