Commit 5f248960 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

This was pretty useless (if there is no solution, there is no problem)

parent fae938e2
...@@ -169,7 +169,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket ) ...@@ -169,7 +169,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
int i_server_port = p_socket->i_server_port; int i_server_port = p_socket->i_server_port;
int i_handle, i_opt; int i_handle, i_opt;
socklen_t i_opt_size;
struct sockaddr_in sock; struct sockaddr_in sock;
vlc_value_t val; vlc_value_t val;
...@@ -238,30 +237,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket ) ...@@ -238,30 +237,6 @@ static int OpenUDP( vlc_object_t * p_this, network_socket_t * p_socket )
} }
#endif #endif
#if !defined( SYS_BEOS )
/* Check if we really got what we have asked for, because Linux, etc.
* will silently limit the max buffer size to net.core.rmem_max which
* is typically only 65535 bytes */
i_opt = 0;
i_opt_size = sizeof( i_opt );
if( getsockopt( i_handle, SOL_SOCKET, SO_RCVBUF, (void*) &i_opt, &i_opt_size ) == -1 )
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Warn( p_this, "cannot query socket (SO_RCVBUF: %i)",
WSAGetLastError() );
#else
msg_Warn( p_this, "cannot query socket (SO_RCVBUF: %s)",
strerror(errno) );
#endif
}
else if( i_opt < 0x80000 )
{
msg_Dbg( p_this, "socket buffer size is 0x%x instead of 0x%x",
i_opt, 0x80000 );
}
#endif
/* Build the local socket */ /* Build the local socket */
#if defined( WIN32 ) || defined( UNDER_CE ) #if defined( WIN32 ) || defined( UNDER_CE )
......
...@@ -138,7 +138,6 @@ static int OpenUDP( vlc_object_t * p_this ) ...@@ -138,7 +138,6 @@ static int OpenUDP( vlc_object_t * p_this )
const char *psz_server_addr = p_socket->psz_server_addr; const char *psz_server_addr = p_socket->psz_server_addr;
int i_server_port = p_socket->i_server_port; int i_server_port = p_socket->i_server_port;
int i_handle, i_opt; int i_handle, i_opt;
socklen_t i_opt_size;
struct sockaddr_in6 sock; struct sockaddr_in6 sock;
vlc_value_t val; vlc_value_t val;
...@@ -184,23 +183,6 @@ static int OpenUDP( vlc_object_t * p_this ) ...@@ -184,23 +183,6 @@ static int OpenUDP( vlc_object_t * p_this )
strerror(errno) ); strerror(errno) );
} }
/* Check if we really got what we have asked for, because Linux, etc.
* will silently limit the max buffer size to net.core.rmem_max which
* is typically only 65535 bytes */
i_opt = 0;
i_opt_size = sizeof( i_opt );
if( getsockopt( i_handle, SOL_SOCKET, SO_RCVBUF,
(void*) &i_opt, &i_opt_size ) == -1 )
{
msg_Warn( p_this, "cannot query socket (SO_RCVBUF: %s)",
strerror(errno) );
}
else if( i_opt < 0x80000 )
{
msg_Warn( p_this, "Socket buffer size is 0x%x instead of 0x%x",
i_opt, 0x80000 );
}
/* Build the local socket */ /* Build the local socket */
if ( BuildAddr( p_this, &sock, psz_bind_addr, i_bind_port ) == -1 ) if ( BuildAddr( p_this, &sock, psz_bind_addr, i_bind_port ) == -1 )
{ {
......
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