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:
5
examples/udpclient.janet
Normal file
5
examples/udpclient.janet
Normal 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)
|
||||
|
Reference in New Issue
Block a user