1
0
mirror of https://github.com/janet-lang/janet synced 2025-08-31 18:08:05 +00:00

Initial UDP implementation.

This commit is contained in:
Calvin Rose
2020-06-01 22:06:27 -05:00
parent 3f434f2a44
commit ec0d0ba368
6 changed files with 240 additions and 71 deletions

5
examples/udpclient.janet Normal file
View File

@@ -0,0 +1,5 @@
(def conn (net/connect "127.0.0.1" "8009" :datagram))
(:write conn (string/format "%q" (os/cryptorand 16)))
(def x (:read conn 1024))
(pp x)