summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.h b/util.h
index 1c99bea..5831b95 100644
--- a/util.h
+++ b/util.h
@@ -5,3 +5,7 @@ char* copy_buf(char *buf,int len);
char* copy_str(char *str);
void str_toupper(char *str);
+
+// Returns -1 on error, 0 on success
+int sendall(int sock,const char *buf,ssize_t len);
+int sendallf(int sock,const char *format,...) __attribute__((format (printf, 2, 3)));