[PD] behringer xr18 (x32) osc
Christof Ressi
info at christofressi.com
Tue Mar 31 12:40:06 CEST 2020
> Hm. I see bidirectional connections with [netsend]/[netreceive] working
> only for TCP. Also, the help-file says 'send' for [netreceive] works
> only for TCP.
Yes, but the problem is only about [netreceive -u]: it doesn't store a
list of clients, so [send( can't work.
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!
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:
[connect localhost 9999 9998( -> [netsend -u]
[connect localhost 9998 9999( -> [netsend -u]
Now you can send messages between the two sockets. See attached patch.
Christof
On 31.03.2020 11:15, Roman Haefeli wrote:
> On Tue, 2020-03-31 at 09:16 +0200, IOhannes m zmölnig wrote:
>
>> right.
>> with recent Pd's you can implement the [udpsndrcv] abstraction using
>> [netsend -u -b].
> 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
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20200331/a1ca6a9e/attachment.html>
-------------- next part --------------
#N canvas 433 337 450 300 12;
#X obj 30 163 netsend -u;
#X obj 196 170 netsend -u;
#X msg 29 94 connect localhost 9999 9998;
#X msg 189 117 connect localhost 9998 9999;
#X msg 37 128 send foo;
#X msg 213 143 send bar;
#X obj 95 198 print A;
#X obj 260 197 print B;
#X connect 0 1 6 0;
#X connect 1 1 7 0;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 1 0;
More information about the Pd-list
mailing list