Created
March 8, 2016 06:23
-
-
Save anonymous/e82c7c424cb49e4ee6b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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