aboutsummaryrefslogtreecommitdiff
path: root/util.h
blob: e25b171c30406c517fcbdb5e16ed19570beba447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef util_h_INCLUDED
#define util_h_INCLUDED

#include <sys/types.h>
#include <sys/socket.h>
#include <stddef.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