<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 9, 2015 at 11:07 AM Bogdan Andu <<a href="mailto:bog495@gmail.com">bog495@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>following the thread <a href="https://groups.google.com/forum/?hl=en#%21topic/erlang-programming/6Q3cLtJdwIU" target="_blank">https://groups.google.com/forum/?hl=en#!topic/erlang-programming/6Q3cLtJdwIU</a><br><br></div>as it seems that POSt to topic does not work<br><br>After more tests the basic questions that remains ..<br><br>Is there a way to have more than one process be blocked<br>in gen_udp:recv/2 call as this seems to not be possible,<br>probably because the way udp sockets work.<br><br>Sequentially works as expected, but when when I try to spawn another process<br>that makes and attempt to execute gen_udp:recv/2 while the first process already does<br>gen_udp:recv/2 , the second process gives elready error. This means that 2 process<br>cannot concurrently do gen_udp:recv/2 .<br></div></blockquote><div><br></div><div>You can if you tell to the udp socket to reuse the port:</div><div><a href="https://github.com/refuge/rbeacon/blob/master/src/rbeacon.erl#L414-L425">https://github.com/refuge/rbeacon/blob/master/src/rbeacon.erl#L414-L425</a><br></div><div><br></div><div>If you do this any process will be able to reuse it and send/recv to it.</div><div><br></div><div>- benoĆ®t</div></div></div>