#ifndef __NETUTILS_H
#define __NETUTILS_H

#include "ports.h"
#include <sys/time.h>

#define MAX_RECV_BUFFER_SIZE 1000000

void send_message(int new_fd, char *msg, int size);
int recv_message(int sockfd, char *buf, int bufsize);
char *form_dummy_message(int size);
double get_time_elapsed(struct timeval *past_tv, struct timeval * now_tv);
double get_time_difference(struct timeval *big_tv, struct timeval *small_tv);
void get_time(struct timeval *t);

#endif
