<div dir="ltr"><div><div><div><div>Hi Peter,<br></div><br></div>I modified the patch so that netsend/netreceive take messages (attached)<br><br>The following doesn't work:<br><br></div>$  killall pd <br>$  PORTNUM=5011; pd -nogui -send ";start listen $PORTNUM" -open 
netreceive-patch.pd & pd -nogui -send ";start connect 
localhost $PORTNUM" -open netsend-patch.pd <br></div>connecting stream socket: Connection refused (61)<br><div><br>However, this does work:<br><br>$  killall pd <br>$  PORTNUM=5012; pd -nogui -send ";start listen $PORTNUM" -open netreceive-patch.pd<b> & sleep 1 ; </b> pd -nogui -send ";start connect localhost $PORTNUM" -open netsend-patch.pd <br><div><br></div><div>I guess it's a timing issue?<br></div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 23, 2018 at 9:43 PM, Peter P. <span dir="ltr"><<a href="mailto:peterparker@fastmail.com" target="_blank">peterparker@fastmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Federico Camara Halac <<a href="mailto:camarafede@gmail.com">camarafede@gmail.com</a>> [2018-02-23 18:43]:<br>
<div><div class="h5">> > So you should first run "killall pd" (and even killall -9 pd when it's<br>
> > stuck), before running you command.<br>
> ><br>
><br>
> Thanks! You are correct that a pd process with the netreceive is still<br>
> running.<br>
> (fun fact, for me at least: When running it from a new terminal, the new<br>
> netsend started printing on the previous terminal)<br>
><br>
> Now I tried it on a different mac. I was on macOS 10.9, now on 10.11.6<br>
> (same pd)<br>
><br>
> On first run, connection is established and patch works as expected, which<br>
> is puzzling.<br>
><br>
> On second run (after effectively running killall pd, or killall -9 pd):<br>
><br>
>   connecting stream socket: Connection refused (61)<br>
<br>
</div></div>Fede, can you confirm that no other Pd instance is running before you<br>
start your second instance?<br>
<br>
I remember issues with the operating system leaving a port open and thus<br>
reserving it for a longer while than the application (Pd in this case)<br>
requests it. You could try to use a patch with a different port number<br>
when you start it the second time and see if that works.<br>
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><a href="http://fdch.github.io/tv" target="_blank">http://fdch.github.io/tv</a></div></div>
</div>