#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <string.h>     /* for memset() */
#include <netinet/in.h> /* for in_addr */
#include <sys/socket.h> /* for socket(), connect(), sendto(), and recvfrom() */
#include <arpa/inet.h>  /* for sockaddr_in and inet_addr() */
#include <stdlib.h>     /* for atoi() and exit() */
#include <unistd.h>     /* for close() */
#include <signal.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <netdb.h>
#include <fcntl.h>

#ifndef LINUX
#define INADDR_NONE  0xffffffff
#endif

#define CHUNKSIZE 10000
#define UDP_TIMEOUT 5
#define TCP_TIMEOUT 20

void DieWithError(char *errorMessage);  /* External error handling function */



