Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1.                         fd_set fds;
  2.                         FD_ZERO(&fds);
  3.                         FD_SET(s, &fds);
  4.                         struct timeval tv;
  5.                         tv.tv_sec = 0;
  6.                         tv.tv_usec = 0;
  7.                         int n = select((int)s + 1, &fds, NULL, NULL, &tv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement