aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-01-12 11:06:18 +0100
committerGitHub <[email protected]>2018-01-12 11:06:18 +0100
commit4deb411cef7fff218445c06b78989b7ead639bd8 (patch)
tree4b0f2d37cd32ded86e4a1053bb436c5e34b268a9 /lib/kernel/src
parentb4801ca7a48521b51e85e8013aad4570cb3ac25a (diff)
parent4a3be82b5891b1aaf6f89f2ce1241986bb4d6c28 (diff)
downloadotp-4deb411cef7fff218445c06b78989b7ead639bd8.tar.gz
otp-4deb411cef7fff218445c06b78989b7ead639bd8.tar.bz2
otp-4deb411cef7fff218445c06b78989b7ead639bd8.zip
Merge pull request #1645 from Zorbash/document-inet-i
OTP:13713: Add documentation and typespecs for inet:i/0
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/inet.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl
index dc20c21c77..fe91b0d33e 100644
--- a/lib/kernel/src/inet.erl
+++ b/lib/kernel/src/inet.erl
@@ -72,7 +72,7 @@
%% timer interface
-export([start_timer/1, timeout/1, timeout/2, stop_timer/1]).
--export_type([address_family/0, hostent/0, hostname/0, ip4_address/0,
+-export_type([address_family/0, socket_protocol/0, hostent/0, hostname/0, ip4_address/0,
ip6_address/0, ip_address/0, port_number/0,
local_address/0, socket_address/0, returned_non_ip_address/0,
socket_setopt/0, socket_getopt/0,
@@ -1452,11 +1452,14 @@ fdopen(Fd, Addr, Port, Opts, Protocol, Family, Type, Module) ->
%% socket stat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+-spec i() -> ok.
i() -> i(tcp), i(udp), i(sctp).
+-spec i(socket_protocol()) -> ok.
i(Proto) -> i(Proto, [port, module, recv, sent, owner,
local_address, foreign_address, state, type]).
+-spec i(socket_protocol(), [atom()]) -> ok.
i(tcp, Fs) ->
ii(tcp_sockets(), Fs, tcp);
i(udp, Fs) ->