Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Socket fixes; supernovus++ for discovering the issue and testing the …
…fix.
  • Loading branch information
jnthn committed Sep 12, 2011
1 parent 831b481 commit ad9639a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/IO/Socket/INET.pm
Expand Up @@ -80,27 +80,27 @@ my class IO::Socket::INET does IO::Socket {
$PIO.connect($addr);
}

nqp::bindattr(self, INET, '$!PIO', $PIO);
nqp::bindattr(self, $?CLASS, '$!PIO', $PIO);
self;
}

method get() {
nqp::p6box_s(nqp::getattr(self, INET, '$!PIO').readline).chomp
nqp::p6box_s(nqp::getattr(self, $?CLASS, '$!PIO').readline).chomp
}

method lines() {
gather { take self.get() };
}

method accept() {
return nqp::p6bool(nqp::getattr(self, INET, '$!PIO').accept());
return nqp::p6bool(nqp::getattr(self, $?CLASS, '$!PIO').accept());
}

method remote_address() {
return nqp::p6box_s(nqp::getattr(self, INET, '$!PIO').remote_address());
return nqp::p6box_s(nqp::getattr(self, $?CLASS, '$!PIO').remote_address());
}

method local_address() {
return nqp::p6box_s(nqp::getattr(self, INET, '$!PIO').local_address());
return nqp::p6box_s(nqp::getattr(self, $?CLASS, '$!PIO').local_address());
}
}

0 comments on commit ad9639a

Please sign in to comment.