to use only 1 shred you can send your messages to a base-adress, and pack the <br>sub-adresses into an argument. not nice, but works.. this way you still can not use adress patterns. <br>but share 1 shred for many message receivers (with the same signature of course..)
<br><br>short example: <br><br><br>// the receiver:<br><br>OscRecv rec;<br>6449 =&gt; rec.port;<br>rec.listen();<br>rec.event(&quot;/BaseAdress,si&quot;) @=&gt; OscEvent BaseEvent; <br><br>while ( true )<br>{ <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BaseEvent =&gt; now; 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while( BaseEvent.nextMsg() != 0 )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BaseEvent.getString() =&gt; string adress;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BaseEvent.getInt() =&gt; int value; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(adress == &quot;SubAdress1&quot;)
<br>&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; &lt;&lt;&lt;&quot;reveived on SubAdress1:&quot;, value&gt;&gt;&gt;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else if(adress == &quot;SubAdress2/SubSub&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;&lt;&lt;&quot;reveived on SubAdress2/SubSub:&quot;, value&gt;&gt;&gt;;
<br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br><br>// the sender:<br><br>while( true )<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sender.startMsg( &quot;/BaseAdress&quot;, &quot;si&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sender.addString(&quot;SubAdress1&quot;);<br>&nbsp;&nbsp;&nbsp; 
sender.addInt(1);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 2::second =&gt; now;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sender.startMsg( &quot;/BaseAdress&quot;, &quot;si&quot; );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sender.addString(&quot;SubAdress2/SubSub&quot;);<br>&nbsp;&nbsp;&nbsp; sender.addInt(2);<br>&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; 2::second =&gt; now;<br>}<br><br><br><br><br><br><br><br><div><span class="gmail_quote">2007/3/27, Lukas Degener &lt;<a href="mailto:degenerl@cs.uni-bonn.de">degenerl@cs.uni-bonn.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I found an old thread on this mailing list which deals with a similar<br>problem:<br><br><a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2005-October/000100.html">https://lists.cs.princeton.edu/pipermail/chuck-users/2005-October/000100.html
</a><br><br>Afaics, all those problems can be solved once it is possible to wait for<br>more than one event.&nbsp;&nbsp;I already saw it on some Todo-list somewhere, so,<br>hm.... when is the next release comming? ;-)<br><br>Cheers,
<br>--lu<br>_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>tazumi<br>