1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

Fix abstract unix sockets for issue #1618 - address #1618

This commit is contained in:
Calvin Rose
2025-08-02 18:51:04 -05:00
parent f00d3199c3
commit 4894a4673a
2 changed files with 21 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
# Linux only - uses abstract unix domain sockets
(ev/spawn (net/server :unix "@abc123" (fn [conn] (print (:read conn 1024)) (:close conn))))
(ev/sleep 1)
(def s (net/connect :unix "@abc123" :stream))
(:write s "hello")
(:close s)