#ifndef UDP_H #define UDP_H #include #include #include #include #include #include #include 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