diff options
Diffstat (limited to 'tcp.h')
-rw-r--r-- | tcp.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ #pragma once -#include "global.h" +#include <stdint.h> //Unless specified otherwise, functions return -1 on error or socket closure. @@ -15,6 +15,9 @@ i64 tcp_send_str(int sock,const char *str); i64 tcp_send_line(int sock,const char *str); i64 tcp_send_line_f(int sock,const char *format,...) __attribute__((format (printf,2,3))); +i64 tcp_send_list(int sock,const char *tag,const char *const *list,i64 len); +i64 tcp_send_int(int sock,const char *tag,i64 value); + i64 tcp_read_ok(int sock,const char *tag); |