aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'net.h')
-rw-r--r--net.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net.h b/net.h
new file mode 100644
index 0000000..de78c12
--- /dev/null
+++ b/net.h
@@ -0,0 +1,10 @@
+#pragma once
+
+#include "global.h"
+
+
+bool net_send_raw_text(int fd,const char *text,i64 len);
+bool net_send_ok(int fd,const char *tag);
+bool net_send_error(int fd,const char *tag,const char *msg);
+bool net_send_name(int fd,const char *tag,const char *name);
+bool net_send_list(int fd,const char *tag,i64 count,const char **list);