[erlang-questions] Socket option FREEBIND

Andreas Schultz <>
Tue Oct 17 08:58:11 CEST 2017


----- On Oct 16, 2017, at 7:18 PM, Guilherme Andrade <> wrote: 

> I believe you can use raw socket options[1] for that, but it won't be portable.

IP_FREEBIND is Linux only. FreeBSD has IP(V6)_BINDANY, which is similar but not identical. Windows apparently has nothing alike. Don't know about the other OS's. 

Andreas 

> [1]: [ http://erlang.org/doc/man/inet.html#setopts-2 |
> http://erlang.org/doc/man/inet.html#setopts-2 ] - {raw, Protocol, OptionNum,
> ValueBin}

> On 16 October 2017 at 15:09, Michael L Martin < [ mailto: |
>  ] > wrote:

>> Hi all,

>> Is there a way to specify the FREEBIND option when opening a socket? I don't see
>> any reference to it in the documentation.

>> Thanks,

>> _______________________________________________
>> erlang-questions mailing list
>> [ mailto: |  ]
>> [ http://erlang.org/mailman/listinfo/erlang-questions |
>> http://erlang.org/mailman/listinfo/erlang-questions ]

> --
> Guilherme

> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171017/c8ddaddf/attachment.html>


More information about the erlang-questions mailing list