<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 9, 2015 at 11:35 AM, Bengt Johansson E <span dir="ltr"><<a href="mailto:bengt.e.johansson@ericsson.com" target="_blank">bengt.e.johansson@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="SV">
<div><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d" lang="EN-US"></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"></span>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Anyway, there is no way the underlying UDP stack and/or erts can make the decision for you. To which process to send the packet that is.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span></p></div></div></blockquote><div><br></div><div>Sure it could. By using the 5 tuple.<br></div><div>{SourceIP, SourcePort, DestinationIP, DestinationPort, Protocol}  (protocol being either ipv4 or ipv6)<br><br></div><div>If we had gen_udp:accept(Sock) which would bind the 5 tuple to the process, it would make writing UDP servers in erlang so much better. We could have acceptor pools just like TCP. <br></div><div><br></div><div>Sergej<br></div><div><br><br></div></div></div></div>