sockets and multiple interfaces

Tony Rogvall <>
Mon Nov 27 17:01:43 CET 2000


Klacke wrote:

> On Fri, Nov 17, 2000 at 12:19:15PM +0100, Hans Nilsson wrote:
> >
> > How do I bind a socket to a certain interface in Erlang?
> >
> > (In C the function setsockopt(2) the option SO_BINDTODEVICE is used to
> > bind the socket to for example "eth0". I can't find this in the Erlang
> > source code.)
> >
>
> Option {ip, Ipddr} will bind the socket to the
> interface which has ipaddress IpAddr.
>

Use the new name  {ifaddr, Ipaddr} instead !!!


--
/Tony


-------------- next part --------------
A non-text attachment was scrubbed...
Name: tony.vcf
Type: text/x-vcard
Size: 333 bytes
Desc: Card for Tony Rogvall
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20001127/c2d220f6/attachment.vcf>


More information about the erlang-questions mailing list