/** * Rick van der Zwet * Licence: BSD * UDP handshake taken from http://www.abc.se/~m6695/udp.html */ #include #include #include #include #include #include #include #include #include #include #define BUFLEN 512 #define NPACK 10 #define PORT 9930 #define PORT_CLIENT 9931 //#define SRV_IP "127.0.0.1" #define SRV_IP "192.168.42.1" struct timeval_t { uint32_t tv_sec; uint32_t tv_usec; };