[erlang-questions] IPV6_V6ONLY
Gé Weijers
ge@REDACTED
Tue Aug 24 01:15:37 CEST 2010
On Mon, 23 Aug 2010, Per Hedeland wrote:
> Since one strong point of Erlang/OTP is to as far as possible isolate
> the Erlang programmer from these annoying differences between OSes,
> could it be considered to make inet_drv always apply IPV6_V6ONLY (if it
> exists) for IPv6 sockets?
One way to implement a protocol-agnostic client and server in C on a Posix
system is to use the getaddrinfo() standard library routine, which
produces a list of parameters that can be fed into socket() + bind() for
servers, and socket() + connect() for clients. On the server size you may
end up with multiple sockets to listen to.
getaddrinfo() and getnameinfo() or simular routines seem to be missing
from Erlang's resolver implementation. Any particular reason why?
Ge' (utter Erlang newbie)
>
> --Per Hedeland
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list