Mercurial > hg > Papers > 2019 > koo-prosym
view Paper/code/abyss.p6 @ 2:fdb00b58c78c
1章修正
author | e165727 <e165727@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 08 Nov 2019 13:51:06 +0900 |
parents | 5e53003f8f1f |
children | 126266fc2c30 |
line wrap: on
line source
unit class Abyss::Server:ver<0.0.1>; use MONKEY-SEE-NO-EVAL; method readeval { my $listen = IO::Socket::INET.new( :listen, :localhost<localhost>, :localport(3333) ); loop { my $conn = $listen.accept; while my $buf = $conn.read(1024) { EVALFILE $buf.decode; } $conn.close; } }