Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (15 sloc) 0.365 kB
use v6;
use Test;
# old: L<S16/"Unfiled"/"IO.getpeername">
# L<S32::IO/IO::Socket/getpeername>
=begin pod
IO.getpeername test
=end pod
plan 1;
if $*OS eq "browser" {
skip_rest "Programs running in browsers don't have access to regular IO.";
exit;
}
my $sock = connect('google.com', 80);
ok $sock.getpeername.defined, "IO.getpeer works";
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.