I'm trying to setup a timeout for the select(int, fd_set, fd_set)
function for UDP socket connections.
When i setup the second and usecond variables, I get Error this declaration has no storage class or type specifier.
Here's the code
#define UTIMER 300000
#define STIMER 0
struct timeval timeouts;
timeouts.tv_sec=STIMER; // <-- ERROR HERE
timeouts.tv_usec=UTIMER; // <-- ERROR HERE