code_junkie

What do you use when you need reliable UDP?

Nov 11th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. int opt = -1;
  2. if (setsockopt(sock_fd, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(opt)))
  3. printf("Error disabling Nagle's algorithm.n");
Add Comment
Please, Sign In to add comment