aboutsummaryrefslogtreecommitdiff
path: root/util.h
blob: f4478727d4afbf862fc7df1bcee5676523b18c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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, char *buf, size_t len);



#endif // util_h_INCLUDED