Update of /cvsroot/pure-data/externals/OSCx/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18096
Modified Files: dumpOSC.c Log Message: checked in patch from tracker 1667928 to fix multicast porting binding bug
Index: dumpOSC.c =================================================================== RCS file: /cvsroot/pure-data/externals/OSCx/src/dumpOSC.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** dumpOSC.c 17 Jan 2007 15:38:05 -0000 1.9 --- dumpOSC.c 14 Jun 2007 15:02:34 -0000 1.10 *************** *** 306,311 **** --- 306,315 ---- if (castgroup) { struct ip_mreq mreq; + int t = 1; mreq.imr_multiaddr.s_addr = inet_addr(castgroup->s_name); mreq.imr_interface.s_addr = htonl(INADDR_ANY); + if (setsockopt(sockfd,SOL_SOCKET,SO_REUSEADDR,&t,sizeof(t)) < 0) { + sys_sockerror("setsockopt"); + } if (setsockopt(sockfd,IPPROTO_IP,IP_ADD_MEMBERSHIP,(char*)&mreq,sizeof(mreq)) < 0) { sys_sockerror("setsockopt");