From 14867ef618386d5008adf19b8d7a76e56f869145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Thu, 12 Apr 2012 15:36:59 +0200 Subject: kernel: Initial doc of forgotten inet options * UDP: ulticast_if, multicast_loop and multicast_ttl, add_membership and drop_membership * Inet: bit8, buffer, deliver, high_watermark, linger and low_watermark --- lib/kernel/doc/src/gen_tcp.xml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'lib/kernel/doc/src/gen_tcp.xml') diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml index cf97607af1..32a0f9b0d7 100644 --- a/lib/kernel/doc/src/gen_tcp.xml +++ b/lib/kernel/doc/src/gen_tcp.xml @@ -96,37 +96,42 @@ do_recv(Sock, Bs) -> can be either a hostname, or an IP address.

The available options are:

- list - -

Received Packet is delivered as a list.

-
- binary - -

Received Packet is delivered as a binary.

-
- {ip, ip_address()} + {ip, ip_address()}

If the host has several network interfaces, this option specifies which one to use.

- {port, Port} - -

Specify which local port number 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.

- inet6 + + {ifaddr, ip_address()} +

TODO: Document

+
+ + inet +

Set up the socket for IPv4.

+
+ + inet6 +

Set up the socket for IPv6.

- inet + + {port, Port} -

Set up the socket for IPv4.

+

Specify which local port number to use.

+ + {tcp_module, module()} +

TODO: Document

+
+ Opt

See -- cgit v1.2.3