Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,15 @@
my $socket = IO::Socket::INET.new:
:localhost<localhost>,
:localport<12321>,
:listen;
while $socket.accept -> $conn {
say "Accepted connection";
start {
while $conn.recv -> $stuff {
say "Echoing $stuff";
$conn.print($stuff);
}
$conn.close;
}
}

View file

@ -0,0 +1,7 @@
react {
whenever IO::Socket::Async.listen('0.0.0.0', 12321) -> $conn {
whenever $conn.Supply.lines -> $line {
$conn.print( "$line\n" ) ;
}
}
}