Same as {ip, ip_address()}. If the host has many
+ {ifaddr, Address}
+ Same as {ip, Address}. If the host has many
network interfaces, this option specifies which one to use.
{fd, integer() >= 0}
If a socket has somehow been connected without using
gen_tcp, use this option to pass the file descriptor
- for it. If {ip, ip_address()} and/or
+ for it. If {ip, Address} and/or
{port, port_number()} is combined with this option, the
fd is bound to the specified interface and port before
connecting. If these options are not specified, it is assumed that
@@ -175,9 +175,10 @@ do_recv(Sock, Bs) ->
local
-
- Sets up the socket for local address family. This option is only
- valid together with {fd, integer()} when the file descriptor
- is of local address family (e.g. a Unix Domain Socket)
+ Sets up a Unix Domain Socket. See
+
+ inet:local_address()
+
{port, Port}
@@ -254,7 +255,7 @@ do_recv(Sock, Bs) ->
B is an integer >= 0. The backlog value
defines the maximum length that the queue of pending connections
can grow to. Defaults to 5.
- {ip, ip_address()}
+ {ip, Address}
If the host has many network interfaces, this option
specifies which one to listen on.
{port, Port}
@@ -263,8 +264,8 @@ do_recv(Sock, Bs) ->
If a socket has somehow been connected without using
gen_tcp, use this option to pass the file
descriptor for it.
- {ifaddr, ip_address()}
- Same as {ip, ip_address()}. If the host has many
+ {ifaddr, Address}
+ Same as {ip, Address}. If the host has many
network interfaces, this option specifies which one to use.
inet6
--
cgit v1.2.3