<div dir="ltr"><br><br><div class="gmail_quote">On Thu, May 21, 2015 at 3:04 PM pablo platt <<a href="mailto:pablo.platt@gmail.com">pablo.platt@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>How can I have multiple workers listen on the same UDP port on Linux?<br></div>SO_REUSEADDR or SO_REUSEPORT are suggested in several places but I couldn't find how to use it.<br><br></div></div></div></div></blockquote><div><br></div><div>In Erlang you can use the raw option to use REUSE_PORT on your platform:</div><div><br></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>and:</div><div><br></div><div><a href="https://github.com/refuge/rbeacon/blob/master/src/rbeacon.erl#L400-L412">https://github.com/refuge/rbeacon/blob/master/src/rbeacon.erl#L400-L412</a><br></div><div><br></div><div>- benoit</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div></div><div>What's the difference between SO_REUSEADDR and SO_REUSEPORT?</div><div><br></div>Do I just listen on the same IP/Port with gen_udp several times with <span>the option {reuseaddr, true}?<br></span></div><span>Is there an equivalent reuseport option?<br><br></span></div><span>Thanks<br></span></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>