<div dir="ltr">Hello!<div><br></div><div>If you need to run random TCP applications in IPv6-only network you usually have to add inet6  option to the gen_tcp:connect or gen_tcp:listen call.</div><div>This has some drawbacks:<br>  * If you edit a third-party code (e.g. database driver), you have to fork the entire project</div><div>  * You have to apply this fix to many places.</div><div>  * Simple fix breaks IPv4-only connectivity</div><div><br></div><div>With inet64_tcp you can just add a dependency for your application, and this gen_tcp backend will automatically discover IPv4 and IPv6 addresses for a given hostname on connect.</div><div><br></div><div>Also listening with default options will listen IPv6 too.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><font face="'courier new', monospace">Danil Zagoskin | <a href="mailto:z@gosk.in" target="_blank">z@gosk.in</a></font></div></div></div></div></div>