diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef util_h_INCLUDED +#define util_h_INCLUDED + +#include <sys/types.h> +#include <sys/socket.h> +#include <stddef.h> +#include "conf.h" + +// repeatedly call send until all the data has been sent down +// the socket. +ssize_t sendall(int sockfd, void *buf, size_t len); + + + +#endif // util_h_INCLUDED + |