[PD] UDP server with Pd

Roman Haefeli reduzent at gmail.com
Tue Jun 1 22:55:24 CEST 2021

Hey all

I would like to open a datagram listening socket and be able to send
back to clients from which I received messages. It seems both [netsend
-u] and (obviously) [netreceive -u] actually can open a listening
socket. However, [netreceive -u] can't send anything back. While
[netsend -u] can send messages back, it doesn't show the source address
of the incoming packets. And using [netreceive -u] for receiving and
[netsend -u] for sending back doesn't work, because for the packets to
arrive at the client, they need to be sent from the same port that is
already occupied by [netreceive]. 

Yet, as long as I used TCP and iemnet, this was possible. However, as
far as I can tell, it's not possible with UDP, neither with iemnet nor
with Pd's built-in classes.

Is that something worth to make a feature request for?

While we're at it, it seems [netreceive] (in TCP mode) can only send
back to all connected clients, but not to a specific one. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210601/e86d69b4/attachment.sig>

More information about the Pd-list mailing list