<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks Danish.&nbsp; Bug has been fixed,
and all win32 project files link with wsock32.lib rather then Ws2_32.lib. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jacob<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
spread-users-bounces@lists.spread.org [mailto:spread-users-bounces@lists.spread.org]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Danish Ahmed<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, May 24, 2006
11:07 AM<br>
<b><span style='font-weight:bold'>To:</span></b> spread-users@lists.spread.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Spread-users] An
unintentional bug in spread daemon 4 releasecandidate for windows</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Hi all<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>I run
spread&nbsp;&nbsp;daemon with following configuration<o:p></o:p></span></font></p>

<p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Spread_Segment
234.5.6.7:5120 {</span></font></b></strong><o:p></o:p></p>

<p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>danish</span></font></b></strong><o:p></o:p></p>

<p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>jaywks</span></font></b></strong><o:p></o:p></p>

<p><strong><b><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>}</span></font></b></strong><o:p></o:p></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>danish
and jaywks are 2 computer names on our LAN.<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>i always
got error:<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>DL_init_channel:
problem in setsockopt to multicast address -368769529<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Then i open spread code and debug it. What i saw the following
call&nbsp;always fail in Data_link.c file in </span></font><font size=2><span
style='font-size:10.0pt'>DL_init_channel function.</span></font><o:p></o:p></p>

</div>

<div>

<p><strong><b><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>if</span></font></b></strong><strong><b><font
size=2 face="Times New Roman"><span style='font-size:10.0pt'> (setsockopt(chan,
IPPROTO_IP, IP_ADD_MEMBERSHIP, (<font color=blue><span style='color:blue'>void</span></font>
*)&amp;mreq, </span></font></b></strong><font size=2><span style='font-size:
10.0pt'><o:p></o:p></span></font></p>

<p><strong><b><font size=2 color=blue face="Times New Roman"><span
style='font-size:10.0pt;color:blue'>sizeof</span></font></b></strong><strong><b><font
size=2 face="Times New Roman"><span style='font-size:10.0pt'>(mreq)) &lt; 0) </span></font></b></strong><font
size=2><span style='font-size:10.0pt'><o:p></o:p></span></font></p>

<p><strong><b><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>{</span></font></b></strong><font
size=2><span style='font-size:10.0pt'><o:p></o:p></span></font></p>

<p><strong><b><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Alarm(
EXIT, &quot;DL_init_channel: problem in setsockopt to multicast address
%d\n&quot;, mcast_address );</span></font></b></strong><font size=2><span
style='font-size:10.0pt'><o:p></o:p></span></font></p>

<p><strong><b><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>}</span></font></b></strong><font
size=2><span style='font-size:10.0pt'><o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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>.<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>So i
changed the import library file according to this article and it worked.<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Suggestion:<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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.<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Best
Regards<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Danish
Ahmed<o:p></o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>