<html><div style='background-color:'><P>Hi all</P>
<P>I run spread&nbsp;&nbsp;daemon with following configuration</P>
<P><STRONG>Spread_Segment 234.5.6.7:5120 {</STRONG></P>
<P><STRONG>danish</STRONG></P>
<P><STRONG>jaywks</STRONG></P>
<P><STRONG>}</STRONG></P>
<P>danish and jaywks are 2 computer names on our LAN.</P>
<P>i always got error:</P>
<P>DL_init_channel: problem in setsockopt to multicast address -368769529</P>
<DIV></DIV>
<DIV>Then i open spread code and debug it. What i saw the following call&nbsp;always fail in Data_link.c file in <FONT size=2>DL_init_channel function.</FONT></DIV>
<DIV><FONT color=#0000ff size=2>
<P><STRONG>if</STRONG></FONT><STRONG><FONT size=2> (setsockopt(chan, IPPROTO_IP, IP_ADD_MEMBERSHIP, (</FONT><FONT color=#0000ff size=2>void</FONT></STRONG><FONT size=2><STRONG> *)&amp;mreq, </STRONG></P>
<P></FONT><FONT color=#0000ff size=2><STRONG>sizeof</STRONG></FONT><FONT size=2><STRONG>(mreq)) &lt; 0) </STRONG></P>
<P><STRONG>{</STRONG></P>
<P><STRONG>Alarm( EXIT, "DL_init_channel: problem in setsockopt to multicast address %d\n", mcast_address );</STRONG></P>
<P><STRONG>}</STRONG></P>
<P>Then i was trying to see code carefully and was making some alteration but i did not find any solution that would worked. As socket option always got failed so i guessed it is some problem with membership option. So i made another program( a very simple one ) to check this&nbsp;API and what i saw it too&nbsp;always failed. Then i searched it and found it is a problem in winsock library inclusion from the link <A href="http://support.microsoft.com/kb/q257460/">http://support.microsoft.com/kb/q257460/</A>.</P>
<P>So i changed the import library file according to this article and it worked.</P>
<P>Suggestion:</P>
<P>Review all other spread projects source code for socket options and their conflicts on winsock libraries and correct them if required according to given link.</P>
<P>Best Regards</P>
<P>Danish Ahmed</P></FONT></DIV></div></html>