aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2012-11-21 17:13:29 +0100
committerFredrik Gustafsson <[email protected]>2012-11-21 17:13:29 +0100
commit9f3141274edd21cffcf371cca553eef56a65df8d (patch)
tree11ed180925101e4c201d202ffa4236d0d92bd3fc /lib/kernel/src
parente082a9bd5b08c5b8b95a3592c7bf2b449655bcb2 (diff)
downloadotp-9f3141274edd21cffcf371cca553eef56a65df8d.tar.gz
otp-9f3141274edd21cffcf371cca553eef56a65df8d.tar.bz2
otp-9f3141274edd21cffcf371cca553eef56a65df8d.zip
Changes to function names, tests and docs of inet
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/inet.erl20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl
index e6f6a28896..767b1c6bfd 100644
--- a/lib/kernel/src/inet.erl
+++ b/lib/kernel/src/inet.erl
@@ -31,8 +31,8 @@
getstat/1, getstat/2,
ip/1, stats/0, options/0,
pushf/3, popf/1, close/1, gethostname/0, gethostname/1,
- ipv4_address/1, ipv6_address/1, ipv4strict_address/1,
- ipv6strict_address/1, parse_address/1, parse_strict_address/1]).
+ parse_ipv4_address/1, parse_ipv6_address/1, parse_ipv4strict_address/1,
+ parse_ipv6strict_address/1, parse_address/1, parse_strict_address/1]).
-export([connect_options/2, listen_options/2, udp_options/2, sctp_options/2]).
@@ -529,32 +529,32 @@ getservbyname(Name, Protocol) when is_atom(Name) ->
Error -> Error
end.
--spec ipv4_address(Address) ->
+-spec parse_ipv4_address(Address) ->
{ok, IPv4Address} | {error, einval} when
Address :: string(),
IPv4Address :: ip_address().
-ipv4_address(Addr) ->
+parse_ipv4_address(Addr) ->
inet_parse:ipv4_address(Addr).
--spec ipv6_address(Address) ->
+-spec parse_ipv6_address(Address) ->
{ok, IPv6Address} | {error, einval} when
Address :: string(),
IPv6Address :: ip_address().
-ipv6_address(Addr) ->
+parse_ipv6_address(Addr) ->
inet_parse:ipv6_address(Addr).
--spec ipv4strict_address(Address) ->
+-spec parse_ipv4strict_address(Address) ->
{ok, IPv4Address} | {error, einval} when
Address :: string(),
IPv4Address :: ip_address().
-ipv4strict_address(Addr) ->
+parse_ipv4strict_address(Addr) ->
inet_parse:ipv4strict_address(Addr).
--spec ipv6strict_address(Address) ->
+-spec parse_ipv6strict_address(Address) ->
{ok, IPv6Address} | {error, einval} when
Address :: string(),
IPv6Address :: ip_address().
-ipv6strict_address(Addr) ->
+parse_ipv6strict_address(Addr) ->
inet_parse:ipv6strict_address(Addr).
-spec parse_address(Address) ->