diff options
author | phintuka <phintuka> | 2006-07-02 16:43:30 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-07-02 16:43:30 +0000 |
commit | a3774fd7a53ac388905c7b25cf1612990acaf08d (patch) | |
tree | f237eefc17d530b3ae481789eace8f0bd982486d | |
parent | a47fa8d9ffdabaa463c914a0f9574768013dd72d (diff) | |
download | xineliboutput-a3774fd7a53ac388905c7b25cf1612990acaf08d.tar.gz xineliboutput-a3774fd7a53ac388905c7b25cf1612990acaf08d.tar.bz2 |
Added reuse flag for broadcast socket
-rw-r--r-- | xine_frontend_vdrdiscovery.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xine_frontend_vdrdiscovery.c b/xine_frontend_vdrdiscovery.c index fd0637ff..30b9b280 100644 --- a/xine_frontend_vdrdiscovery.c +++ b/xine_frontend_vdrdiscovery.c @@ -6,7 +6,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_vdrdiscovery.c,v 1.1 2006-06-03 10:01:18 phintuka Exp $ + * $Id: xine_frontend_vdrdiscovery.c,v 1.2 2006-07-02 16:43:30 phintuka Exp $ * */ @@ -34,6 +34,9 @@ static int search_vdr_server(int *port, char *address) if(setsockopt(fd_broadcast, SOL_SOCKET, SO_BROADCAST, &dummy, sizeof(int)) < 0) LOGERR("setsockopt(SO_BROADCAST) failed"); + if(setsockopt(fd_broadcast, SOL_SOCKET, SO_REUSEADDR, + &dummy, sizeof(int)) < 0) + LOGERR("setsockopt(SO_REUSEADDR) failed"); sin.sin_family = AF_INET; sin.sin_port = htons(DISCOVERY_PORT); |