7 #include <sys/socket.h>
12 #include <sys/types.h>
13 #include <netinet/in.h>
14 #include <netinet/tcp.h>
15 #include <netinet/in_systm.h>
16 #include <netinet/ip.h>
19 #define uint32 unsigned
24 #define DEBUG(l, x) printf x
26 int open_socket_in(int type, int port, uint32 socket_addr);
27 int open_socket_out(char *host, int port);
29 void report_time(uint64_t total);
31 void set_socket_options(int fd, char *options);