On Fri, 18 Mar 2011 08:34:19 +1100, Moritz Lenz <mor...@faui2k3.org> wrote:

Today I pushed a completely new socket implementation, which is much
closer to p5's IO::Socket::INET, and IMHO has a much saner interface.

For a client, write

my $c = IO::Socket::INET.new(:host('http://rakudo.org/'), :port(80));
# no separate .open call necessary.

For a server, write

my $s = IO::Socket::INET.new(
           :localhost('127.0.0.1'),
           :localport(1024),
           :listen
);
# no separate calls to .bind or .listen necessary.

What does ':something' mean? Named argument 'something'?

--
Cosimo

Reply via email to