aboutgitcodelistschat:MatrixIRC
path: root/demo/connect.hjson
diff options
context:
space:
mode:
Diffstat (limited to 'demo/connect.hjson')
-rw-r--r--demo/connect.hjson13
1 files changed, 13 insertions, 0 deletions
diff --git a/demo/connect.hjson b/demo/connect.hjson
new file mode 100644
index 0000000..91d5af1
--- /dev/null
+++ b/demo/connect.hjson
@@ -0,0 +1,13 @@
+[
+ {
+ "match": [
+ { "connect": { "addr": { "family": "unix", "path": "/var/run/pr-helper.sock" }, "fd": { "tag": "fd" } } }
+ ],
+ "call": [
+ { "socket": { "family": "unix", "type": "stream", "flags": 0, "protocol": 0 }, "ret": "new_fd" },
+ { "connect": { "fd": { "tag": { "get": "new_fd" } }, "addr": { "family": "unix", "path": "/tmp/demo.sock" } }, "ret": "y" }
+ ],
+ "fd": { "src": { "tag": "fd" }, "new": { "tag": "new_fd" }, "close_on_exec": false },
+ "return": 0
+ }
+]