Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2016 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e82c7c424cb49e4ee6b5 to your computer and use it in GitHub Desktop.
Save anonymous/e82c7c424cb49e4ee6b5 to your computer and use it in GitHub Desktop.
[jdv@wieldy ~]$ cat test.p6
react { whenever IO::Socket::Async.bind-udp('localhost', 5555).Supply.lines {
say $_;
} }
[jdv@wieldy ~]$ perl6 test.p6 &
[1] 5161
[jdv@wieldy ~]$ echo -e "foo\nbar" | nc --udp localhost 5555
foo
bar
[jdv@wieldy ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment