Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fd_set fds;
- FD_ZERO(&fds);
- FD_SET(s, &fds);
- struct timeval tv;
- tv.tv_sec = 0;
- tv.tv_usec = 0;
- int n = select((int)s + 1, &fds, NULL, NULL, &tv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement