<html><div style='background-color:'><DIV class=RTE>Hi All </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;Hi Sir/Madam,<BR>&gt;<BR>&gt; I am having some prob. working with spread.<BR>&gt;<BR>&gt; I am using the spread server for communication.I have to develop<BR>&gt; client code which can send and receive data anytime.<BR>&gt;<BR>&gt; My probs.<BR>&gt; 1) I will be able to receive data and send that data<BR>&gt; 2) I will be able to create data and send that data.<BR>&gt;<BR>&gt; but these two things will be able to work simultaneously.<BR>&gt;<BR>&gt; like receive is a blocking call , if at that time i want to send data<BR>&gt; by creating myself i am able to do that.<BR>&gt;<BR>&gt; The prob i faced is that my program blocks in receive call. or in<BR>&gt; send.call<BR>&gt; until i do not send any data i am not able to receive any data.<BR>&gt;<BR>&gt; plz help us<BR>&gt;<BR>&gt;<BR></DIV>
<DIV>I am currently using Spread 4 RC2 <A href="http://www.spread.org/news/news-Spread4Beta.html">http://www.spread.org/news/news-Spread4Beta.html</A>&nbsp;and have written client side code in C# on Windows platform. For client side I am using an open source C# library "cspread"&nbsp;found at <A href="http://www.spread.org/SpreadPlatforms.html">http://www.spread.org/SpreadPlatforms.html</A>.&nbsp;This library gives receiveing of data asynchronously ( through C# events&nbsp;). Actually it is done through&nbsp;sockets asynchronous I/O. I dont know much about C and JAVA API but may be this would solve ur problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Conclusion:</DIV>
<DIV>If u r writing client on .NET platform then u can easily&nbsp;solve ur problem otherwise u have to &nbsp;see this library code&nbsp;and can convert in ur desired platform/language if there is an asynchronous I/O support available on sockets.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards</DIV>
<DIV>Danish Ahmed</DIV></div></html>