[erlang-questions] IPaddress/FQDN?

Attila Rajmund Nohl <>
Fri Feb 5 17:15:52 CET 2010


2010/2/5, Ish Rattan <>:
>
> How does one specify the ipadress or domain-name of the
> host in the following construct?
>
>   {ok, Listen} = gen_tcp:listen(5901, [binary, {packet, 4},
>                                  {reuseaddr, true}, {active, true}]),

Maybe gen_tcp:listen(5901, [binary, {packet, 4},
           {reuseaddr, true}, {active, true}, {ip, {1,2,3,4}}, inet])
?


More information about the erlang-questions mailing list