<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hm. I see bidirectional connections with [netsend]/[netreceive] working
only for TCP. Also, the help-file says 'send' for [netreceive] works
only for TCP.</pre>
</blockquote>
Yes, but the problem is only about [netreceive -u]: it doesn't
store a list of clients, so [send( can't work.</p>
<p>Actually, the implementation would be not so trivial because UDP
has no real notion of connection, so [netreceive -u] wouldn't
really know when to remove a client from the list... Or should it
just keep clients until explicitly removed by the user? For a real
server, I think we also need something like a [sendto( message, so
we can reply to specific clients, since we don't always want to
broadcast - also for TCP mode!<br>
</p>
<p>But pairwise bidirectional communication does work for [netsend
-u], ist just that you need two pairs of [netsend -u] and bind
them to specific ports:</p>
<p>[connect localhost 9999 9998( -> [netsend -u]</p>
<p>[connect localhost 9998 9999( -> [netsend -u]</p>
<p>Now you can send messages between the two sockets. See attached
patch.<br>
</p>
<p>Christof<br>
</p>
<div class="moz-cite-prefix">On 31.03.2020 11:15, Roman Haefeli
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6c4d2c3733ba7323c30d9d29dd14e673ad8b58f2.camel@gmail.com">
<pre class="moz-quote-pre" wrap="">On Tue, 2020-03-31 at 09:16 +0200, IOhannes m zmölnig wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">right.
with recent Pd's you can implement the [udpsndrcv] abstraction using
[netsend -u -b].
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Hm. I see bidirectional connections with [netsend]/[netreceive] working
only for TCP. Also, the help-file says 'send' for [netreceive] works
only for TCP.
At least, in the current master branch.
Roman
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
</body>
</html>