Hello,<br><br>I&#39;ve recently been informed of the spread toolkit, and I look forward to developing on top of it for a few client / server projects I&#39;ve been wanting to get into. I plan to write a GUI front end in C#, and Use perl for the server side data accessors in conjunction with DBD::Pg and POE. However my knowledge of C# is somewhat limited compared to perl. I&#39;m still uncomfortable with the language, and I have much to learn. (Which is why I&#39;m using spread, and not socket programing myself).<br>
<br>The API is poorly documented, or if its really well documented then I&#39;m really missing something.<br><br>I need to know exactly, how do I send and receive messages? The SpreadMessage Constructor takes no arguments, and is not overloaded. Nor does a SpreadMessage Object have any properties or methods to define a message, or message data.<br>
<br>What I think, is he right way to do this is to send messages as XML so I can implement some form of checking to ensure no packets were droped / lost. So I need &quot;some method&quot; that returns a SpreadMessage Object that I can then throw into SpreadConnection.Milticast.<br>
<br>Something like this:<br>[code=csharp]<br><span style="color: rgb(51, 51, 255);">namespace</span> SpreadClient<br>{<br><span style="color: rgb(153, 153, 153);">       // This is held in a TabControl.TabPage</span><br style="color: rgb(153, 153, 153);">
<span style="color: rgb(153, 153, 153);">       // New Tabs are created for each joined group.</span><br style="color: rgb(153, 153, 153);"><span style="color: rgb(153, 153, 153);">       // We will implement methods to send only to</span><br style="color: rgb(153, 153, 153);">
<span style="color: rgb(153, 153, 153);">       // our group, and all groups. </span><br>       <span style="color: rgb(51, 51, 255);">public partial class</span> <span style="color: rgb(51, 153, 153);">SPMsg</span> : <span style="color: rgb(51, 153, 153);">UserControl</span><br>
       {<br>                <span style="color: rgb(51, 153, 153);">SpreadConnection</span> conn;<br>                <span style="color: rgb(51, 153, 153);">SpreadGroup</span> group;<br><br>                <span style="color: rgb(51, 51, 255);">public</span> <span style="color: rgb(51, 153, 153);">SPMsg </span>(<span style="color: rgb(51, 153, 153);"> SpreadConnection</span> c, <span style="color: rgb(51, 153, 153);">SpreadGroup</span> g )<br>
                {<br>                         <span style="color: rgb(51, 102, 255);">this</span>.conn = c;<br>                        <span style="color: rgb(51, 102, 255);"> this</span>.group = g;<br>                         InitializeComponent();<br>
                }<br>               <span style="color: rgb(51, 51, 255);">public void</span> SendMsg(string xmldata)<br>               {                <br>                       conn.Mulicast(<br>                               MsgMaker.Msg(xmldata));<br>
               }<br>       }<br>}<br><br>Of course other things need to be implemented as well like message recievers and such. But I think I can use events for that, since the Spread Lib comes with a few delegates that handle that. Anyway, My methods probably aren&#39;t the best. And anyone that can offer help, or a better way to skin this cat, I would be greatly appreciative.<br>