<div dir="ltr">ok thanks for the explanation<div><br></div><div>so, for now, there is now way to setup a working [udpserver] in pd right ?</div><div>if so, I will stay with [tcpserver] even if I don&#39;t need tcp...</div>

<div><br></div><div>but if I could help in debugging [udpserver], I&#39;ll be happy to do so, just let me know what can I do</div><div><br></div><div>cheers</div><div><br></div><div>a</div></div><div class="gmail_extra">
<br clear="all">
<div>--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div>
<br><br><div class="gmail_quote">2013/7/4 IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div class="im">On 2013-07-04 13:55, Antoine Villeret wrote:<br>
&gt; 2013/7/3 IOhannes m zmoelnig &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>
&gt;<br>
</div><div class="im">&gt; On 2013-07-03 17:33, Antoine Villeret wrote:<br>
&gt;&gt;&gt;&gt; so it could be difficult to use a server which doesn&#39;t accept<br>
&gt;&gt;&gt;&gt; more than one connection...<br>
&gt;&gt;&gt;&gt;<br>
&gt;<br>
&gt; no that&#39;s not what i meant. you can have as many connections as you<br>
&gt; want, but they cannot be maintained at the same time.<br>
&gt;<br>
</div>&gt; simple example: - both clientA and clientB send a a query to the<br>
&gt; server - to complicate things, they do so at exactly the same time<br>
<div class="im">&gt; - but since IP is a serial protocol, they will somehow arrive one<br>
</div>&gt; after each other - let&#39;s assume clientB was faster - [udpserver]<br>
&gt; will output the query from clientB - if the server-patch now<br>
<div class="im">&gt; immediately responds to that query, the response will be sent back<br>
</div>&gt; to clientB - then [udpserver] will output the query from clientA. -<br>
&gt; [udpserver] will forget everything about clientB - if the<br>
<div class="im">&gt; server-patch responds immediately to that query, the response will<br>
</div>&gt; be sent back to clientB - if you later &quot;send&quot; something from the<br>
<div class="im">&gt; server, it will still be sent to clientB (because clientB is the<br>
&gt; last known connection)<br>
&gt;<br>
&gt;<br>
&gt;&gt; so in this case, if I understand correctly, udpserver never send<br>
&gt;&gt; an answer to clientA ?<br>
<br>
</div>no, it does send and answer back.<br>
<div class="im"><br>
&gt;&gt; I have to disconnect clientB *before* connecting clientA ?<br>
<br>
</div>no. UDP doesn&#39;t know about &quot;connections&quot;.<br>
<div class="im"><br>
&gt;&gt; but how clientA will know this is time to connect ? should it try<br>
&gt;&gt; until the connection is accepted ?<br>
<br>
</div>again, UDP is connection-less so there is no connection.<br>
<br>
i think the main problem here comes from the use of the symbol<br>
&quot;connect&quot; for interfacing with e.g. [udpsend].<br>
this message is named &quot;connect&quot; mainly for consistency with the tcp/ip<br>
objects.<br>
<br>
anyhow, when you &quot;connect&quot; a client to server, the client will open a<br>
socket for this connection. the server won&#39;t know anything about this<br>
&quot;connection&quot;, but it will receive data on a it&#39;s listening socket. it<br>
can use the socket to send data back (if you have routers/switches/...<br>
inbetween, this sending back will only work for a limited amount of time).<br>
since the server doesn&#39;t know anything about the &quot;connection&quot;-state of<br>
the clients, you don&#39;t have to disconnect anything.<br>
<br>
<br>
fgmasdr<br>
<div class="im">IOhannes<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Icedove - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div>iEYEARECAAYFAlHVZt0ACgkQkX2Xpv6ydvS1DQCg3OWfgTqDbH6P52s+1S5FOoJt<br>
q3IAn3fxytsJlhVAmepjfXsakZIYGFiT<br>
=djBg<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</div></div></blockquote></div><br></div>