<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font face="Trebuchet MS">Hi,<br>
<br>
I am a new to Spread.<br>
<br>
</font><font face="Trebuchet MS">Also I would like to know a couple of
things :<br>
1. Type of communication protocol is used between daemons <br>
2. </font><font face="Trebuchet MS">Type of communication protocol is
used daemon&nbsp; and client.<br>
<br>
Also I&nbsp; have&nbsp; seen&nbsp;&nbsp; a "abcd"&nbsp; file of type socket is been created in
/tmp/ when we start daemon. (abcd = port number configured)<br>
Is that the client and daemon use this file for interprocess&nbsp;
communication&nbsp; ?&nbsp; How do they&nbsp; communicate&nbsp; ? <br>
<br>
<br>
<br>
Also </font><font face="Trebuchet MS">I am facing a situation in which
recv() returns -1 in below code snippet in function <b>SP_scat_receive()&nbsp;</b>
<br>
<br>
while(((ret = recv( mbox, &amp;buf_ptr[len], remain, 0 )) == -1 )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;&amp; ((sock_errno == EINTR) ||
(sock_errno == EAGAIN) || (sock_errno == EWOULDBLOCK)) )<br>
&nbsp;if( ret &lt;=0 )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mutex_unlock( &amp;Mbox_mutex[mbox
&amp; MAX_MUTEX_MASK][1] );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SP_kill( mbox );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return( CONNECTION_CLOSED );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
<br>
Is that the client is not able to receive messages from the daemon ? <br>
What can be reason for recv() returning -1 ?<br>
<br>
<br>
<br>
<br>
</font><font face="Trebuchet MS"><br>
</font><font face="Trebuchet MS"><br>
<br>
<br>
</font>
<pre class="moz-signature" cols="72">-- 
Regards,
Vipul Shinde 

"The future belongs to those who believe in the beauty of their dreams." 




</pre>
<p>DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.</p>
</body>
</html>