#include #include #include #include #include #include #include int usleep_socket(SOCKET s, unsigned int useconds) { fd_set dummy; struct timeval tv; FD_ZERO(&dummy); FD_SET(s, &dummy); tv.tv_sec = useconds / 1000000; tv.tv_usec = useconds % 1000000; return select(0, 0, 0, &dummy, &tv); } int verbose; int test_main(int argc, char *const argv[]) { int i; int n = 1; WSADATA wsadata; SOCKET s; for (i=1; i