From 4a3be82b5891b1aaf6f89f2ce1241986bb4d6c28 Mon Sep 17 00:00:00 2001 From: Dimitris Zorbas Date: Sun, 26 Nov 2017 20:48:44 +0000 Subject: Add documentation to :inet.i Also fix a typo. --- lib/kernel/doc/src/inet.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) (limited to 'lib/kernel') diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index 169a76463b..abb045b744 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -197,6 +197,9 @@ fe80::204:acff:fe17:bf38 + + + @@ -460,6 +463,61 @@ get_tcpi_sacked(Sock) -> + + + + + Displays information and statistics about sockets on the terminal + +

+ Lists all TCP, UDP and SCTP sockets, including those that the Erlang runtime system uses as well as + those created by the application. +

+

+ The following options are available: +

+ + + port + +

The internal index of the port.

+
+ module + +

The callback module of the socket.

+
+ recv + +

Number of bytes received by the socket.

+
+ sent + +

Number of bytes sent from the socket.

+
+ owner + +

The socket owner process.

+
+ local_address + +

The local address of the socket.

+
+ foreign_address + +

The address and port of the other end of the connection.

+
+ state + +

The connection state.

+
+ type + +

STREAM or DGRAM or SEQPACKET.

+
+
+
+
+ Convert IPv6/IPV4 address to ASCII. @@ -1214,7 +1272,7 @@ inet:setopts(Sock,[{raw,6,8,<<30:32/native>>}]),]]> For one-to-many style sockets, the special value 0 is defined to mean that the returned addresses must be without any particular association. - How different SCTP implementations interprets this varies somewhat. + How different SCTP implementations interpret this varies somewhat.

-- cgit v1.2.3