Hello,

I am trying to use this code with select:

Code:
	struct timeval to;
	to.tv_sec  = 1;
	to.tv_usec = 0;
	select(static_cast<int>(maxfd+1), &listenSet, 0, 0, &to);
but when I run it gives me the error: 10022.. am I using the timeval struct wrong? I wanted it to pause for one sec and wait for an incoming connection.

Thanks!