From c02fa99188c868496f864a20b1139ec4e6f93c2a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 14 Apr 2017 20:43:29 +0200 Subject: server: Factor out net related functions from command.c --- net.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 net.h (limited to 'net.h') 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); -- cgit v1.2.3-70-g09d2