gokuraku has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
Since I now have a working TCP client and server running I am looking to incorporate IPv6 into my work. I'm not quite sure how to go about this. I am using the standard Perl Cookbook to make my servers and clients, basically with IO::Socket::INET
$server = IO::Socket::INET->new(LocalAddr => "$localHost:$socket_port +", Proto => $protocol, Reuse => 1, Listen => $conn) or die "Can't make $protocol server on port $socket_port: $@\n +"; print "Running on port $socket_port.\n" if $verbose;
So if am looking to incorporate Socket6 into my program, to have a different IP version get built, can I still use this code to generate it? Would I just need to import Socket6 in an instance that I need IPv6? I know in C you need to use AF_INET6 instead of AF_INET, but I can't quite figure out how to do this with Socket6.
I got directed to Socket6 in trying to search for IPv6 clients or servers, haven't found much in the way of examples for what I need to do yet. Any help is appreciated.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting IPv6 with the Cookbook
by ikegami (Patriarch) on Dec 18, 2007 at 19:55 UTC | |
by gokuraku (Monk) on Dec 20, 2007 at 13:35 UTC | |
|
Re: Getting IPv6 with the Cookbook
by weismat (Friar) on Dec 18, 2007 at 18:27 UTC | |
by gokuraku (Monk) on Dec 19, 2007 at 13:22 UTC | |
by gokuraku (Monk) on Dec 20, 2007 at 14:43 UTC |