#ifndef UDP_H #define UDP_H #include #include #include #include #include #include #include #define MAX_UDP 65507 using namespace std; void setupSocket(uint16_t port, char *hostname, struct hostent *host, int timeout, struct sockaddr_in *si, int *s); int sendMsg(int s, char *msg, size_t msgLength, struct sockaddr_in *si); int recvMsg(int s, char *msg, size_t msgLength, struct sockaddr_in *si); #endif