summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index e04d2608..49e1726c 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -325,18 +325,10 @@ Networking_Core *new_networking(IP ip, uint16_t port)
325#endif 325#endif
326 326
327 /* Functions to increase the size of the send and receive UDP buffers. 327 /* Functions to increase the size of the send and receive UDP buffers.
328 * NOTE: Uncomment if necessary.
329 */ 328 */
330 /*
331 int n = 1024 * 1024 * 2; 329 int n = 1024 * 1024 * 2;
332 if(setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char*)&n, sizeof(n)) == -1) 330 setsockopt(temp->sock, SOL_SOCKET, SO_RCVBUF, (char *)&n, sizeof(n));
333 { 331 setsockopt(temp->sock, SOL_SOCKET, SO_SNDBUF, (char *)&n, sizeof(n));
334 return -1;
335 }
336
337 if(setsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char*)&n, sizeof(n)) == -1)
338 return -1;
339 */
340 332
341 /* Enable broadcast on socket */ 333 /* Enable broadcast on socket */
342 int broadcast = 1; 334 int broadcast = 1;