Commit b3248bd5 authored by Sam Hocevar's avatar Sam Hocevar

  * Fixed the vlcs communication for real now.
parent cdf12612
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* netutils.c: various network functions * netutils.c: various network functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.c,v 1.43 2001/11/12 22:42:56 sam Exp $ * $Id: netutils.c,v 1.44 2001/11/12 23:56:53 sam Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr> * Benoit Steiner <benny@via.ecp.fr>
...@@ -295,6 +295,16 @@ int network_ChannelJoin( int i_channel ) ...@@ -295,6 +295,16 @@ int network_ChannelJoin( int i_channel )
return -1; return -1;
} }
i_dummy = 1;
if( setsockopt( i_fd, SOL_SOCKET, SO_REUSEADDR,
(void *) &i_dummy, sizeof( i_dummy ) ) == -1 )
{
intf_ErrMsg( "network error: can't SO_REUSEADDR vlcs socket (%s)",
strerror(errno));
close( i_fd );
return -1;
}
/* Getting information about the channel server */ /* Getting information about the channel server */
psz_vlcs = main_GetPszVariable( INPUT_CHANNEL_SERVER_VAR, psz_vlcs = main_GetPszVariable( INPUT_CHANNEL_SERVER_VAR,
INPUT_CHANNEL_SERVER_DEFAULT ); INPUT_CHANNEL_SERVER_DEFAULT );
......
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