[vlc-devel] commit: Set buffer sizes ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Sep 4 22:58:45 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Sep  4 23:38:02 2008 +0300| [9a5e5236beae0b8c9ff08dcecc8922ac13d54799] | committer: Rémi Denis-Courmont 

Set buffer sizes

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a5e5236beae0b8c9ff08dcecc8922ac13d54799
---

 src/network/udp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/network/udp.c b/src/network/udp.c
index d0938b9..0b723c7 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -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)




More information about the vlc-devel mailing list