Advertisement
Matthuwee

Untitled

Jun 17th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. pfds = realloc(pfds, sizeof(struct pollfd)*(amount_of_clients +1));
  2. pfds[amount_of_clients].fd = get_socket_descriptor(client);
  3. pfds[amount_of_clients].events = POLLIN;
  4. pfds[amount_of_clients].revents = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement