Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set the default protocol family to be INET
  • Loading branch information
perlpilot committed Feb 16, 2011
1 parent 4f5299c commit ef3f3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/IO/Socket/INET.pm
Expand Up @@ -18,7 +18,7 @@ module PIO {

class IO::Socket::INET is Cool does IO::Socket {

method open (Str $hostname, Int $port, Int :$protocol = PIO::PROTO_TCP, Int :$family = 0) {
method open (Str $hostname, Int $port, Int :$protocol = PIO::PROTO_TCP, Int :$family = PIO::PF_INET) {
my $addr = IO::Socket::INET.getaddrinfo(
$hostname,
$port,
Expand Down Expand Up @@ -60,7 +60,7 @@ class IO::Socket::INET is Cool does IO::Socket {
}}) );
}
method bind (Str $hostname, Int $port, Int :$protocol = PIO::PROTO_TCP, Int :$family = 0) {
method bind (Str $hostname, Int $port, Int :$protocol = PIO::PROTO_TCP, Int :$family = PIO::PF_INET) {
my $addr = IO::Socket::INET.getaddrinfo(
$hostname,
$port,
Expand Down

0 comments on commit ef3f3fa

Please sign in to comment.