1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 01:37:19 +00:00
janet/examples/udpclient.janet

6 lines
142 B
Plaintext
Raw Normal View History

2020-06-02 03:06:27 +00:00
(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)