Commit 9a5e5236 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Set buffer sizes

parent dc8228bb
...@@ -145,6 +145,10 @@ static int net_ListenSingle (vlc_object_t *obj, const char *host, int port, ...@@ -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 */ /* Bind the socket */
#if defined (WIN32) || defined (UNDER_CE) #if defined (WIN32) || defined (UNDER_CE)
if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen) if (net_SockAddrIsMulticast (ptr->ai_addr, ptr->ai_addrlen)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment