]> git.sesse.net Git - vlc/commitdiff
Set buffer sizes
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 4 Sep 2008 20:38:02 +0000 (23:38 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Thu, 4 Sep 2008 20:38:02 +0000 (23:38 +0300)
src/network/udp.c

index d0938b9a9cc070118f26fdd3024299644177174d..0b723c7f214410c0a5494f20a662011bb07fb9dc 100644 (file)
@@ -145,6 +145,10 @@ static int net_ListenSingle (vlc_object_t *obj, const char *host, int port,
             }
         }
 
+        setsockopt (fd, SOL_SOCKET, SO_SNDBUF, &(int){ 0x80000 }, sizeof (int));
+        setsockopt (fd, SOL_SOCKET, SO_RCVBUF, &(int){ 0x80000 }, sizeof (int));
+        setsockopt (fd, SOL_SOCKET, SO_BROADCAST, &(int){ 1 }, sizeof (int));
+
         /* Bind the socket */
 #if defined (WIN32) || defined (UNDER_CE)
         if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)