aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-14 22:03:43 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-14 22:03:43 -0400
commitd5b52a1302ef4409424ec0633ccf9bd72359ea32 (patch)
tree76d90c6b51f8bf234cc19cce75147d6089a1b808 /src/socket.h
parentbfe96a6aa5fa3ca9a05b658efbcaee9dc01b5235 (diff)
downloadrunes-d5b52a1302ef4409424ec0633ccf9bd72359ea32.tar.gz
runes-d5b52a1302ef4409424ec0633ccf9bd72359ea32.zip
refactor/rewrite the client/server protocol handling
also pass the environment and current directory over as well
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
new file mode 100644
index 0000000..85387c4
--- /dev/null
+++ b/src/socket.h
@@ -0,0 +1,10 @@
+#ifndef _RUNES_SOCKET_H
+#define _RUNES_SOCKET_H
+
+int runes_socket_client_open(char *path);
+int runes_socket_server_open(char *path);
+int runes_socket_server_accept(int s);
+void runes_socket_client_close(int s);
+void runes_socket_server_close(int s, char *path);
+
+#endif