<div dir="ltr">Hi!<br><div class="gmail_extra"><br><div class="gmail_quote">2016-09-19 19:14 GMT+02:00 Ameretat Reith <span dir="ltr"><<a target="_blank" href="mailto:ameretat.reith@gmail.com">ameretat.reith@gmail.com</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr">I'm using tsung and it open a HTTP server to give me good things by inets API<br>[1]  But it open just IPv6 sockets and TCP connections over IPv4 connections<br>will fail.  I looked into inets to find how it finds to open IPv4 or IPv6<br>sockets and saw socket_type which defaults to ip_comm. [2]  What is this?</div></blockquote><div><br></div><div>This is a legacy name. It does not imply ipv4 or ipv6 it implies not SSL/TLS or <br></div><div>HTTP as opposed to  HTTPS.<br><br></div><div>There is an <strong>ipfamily option that you can set to get inet or inet6. <br></strong></div><div><br></div><div><br></div><div>Regards Ingela Erlang/OTP team - Ericsson AB <br></div><div><br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"> Is this<br>mean IPv4 or IPv6 if system support?  Can I provide inets more information to <br>listen to both IPv4 and IPv6?<br><br>I think for listenning on both IPv4 and IPv6 using same port number, one should<br>open two sockets and set REUSE_PORT option.  Can inets understand this by<br>looking to socket_type or something?  Can I (in inets:start call) tell I wan't<br>IPv4 sockets?  Or tell inets lib totally forget about IPv6 and open IPv4 sockets<br>always?<br><br>1: <a target="_blank" href="https://github.com/processone/tsung/blob/18a318884282a17f419850169aefec9bdd5fc2ac/src/tsung_controller/ts_controller_sup.erl#L118">https://github.com/processone/<wbr>tsung/blob/<wbr>18a318884282a17f419850169aefec<wbr>9bdd5fc2ac/src/tsung_<wbr>controller/ts_controller_sup.<wbr>erl#L118</a><br><br>2: <a target="_blank" href="https://github.com/erlang/otp/blob/3b7a6ffddc819bf305353a593904cea9e932e7dc/lib/inets/include/httpd.hrl#L31">https://github.com/erlang/otp/<wbr>blob/<wbr>3b7a6ffddc819bf305353a593904ce<wbr>a9e932e7dc/lib/inets/include/<wbr>httpd.hrl#L31</a><br></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a target="_blank" rel="noreferrer" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div>