mirror of
https://github.com/janet-lang/janet
synced 2025-02-05 03:30:02 +00:00
![Calvin Rose](/assets/img/avatar_default.png)
This makes streams polymorphic with files in many cases. printf family functions still need porting.
7 lines
184 B
Plaintext
7 lines
184 B
Plaintext
(with [conn (net/connect "127.0.0.1" "8000")]
|
|
(printf "Connected to %q!" conn)
|
|
(:write conn "Echo...")
|
|
(print "Wrote to connection...")
|
|
(def res (:read conn 1024))
|
|
(pp res))
|