<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="">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. </pre>
      </blockquote>
      Actually, a [sendto( message for [netreceive] would already allow
      you to build a fully functional UDP server in Pd vanilla.<br>
    </p>
    <p>BTW, there is a [udpserver] object in iemnet, but it's not really
      usable yet (it only allows to send messages to the last sender).<br>
    </p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 01.06.2021 22:55, Roman Haefeli
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:289257db823ad01f07c164466c6e9d1b076dfa35.camel@gmail.com">
      <pre class="moz-quote-pre" wrap="">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. 

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>