aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/include/inet.hrl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-05-13 13:55:22 +0200
committerHans Bolinder <[email protected]>2011-05-13 13:55:22 +0200
commit897c1066e6c06285b1854b5af5c70dba0fd4f0ed (patch)
tree38f0daa552efff686ae57871873fbb148a5e9399 /lib/kernel/include/inet.hrl
parentb1e768e86593178810c8a0b3c38443dcf6be5181 (diff)
parentbd5e9c5746eb02666e8c6ae7af3f4dff514e3677 (diff)
downloadotp-897c1066e6c06285b1854b5af5c70dba0fd4f0ed.tar.gz
otp-897c1066e6c06285b1854b5af5c70dba0fd4f0ed.tar.bz2
otp-897c1066e6c06285b1854b5af5c70dba0fd4f0ed.zip
Merge branch 'hb/kernel/specs/OTP-9268' into dev
* hb/kernel/specs/OTP-9268: Types and specifications have been modified and added
Diffstat (limited to 'lib/kernel/include/inet.hrl')
-rw-r--r--lib/kernel/include/inet.hrl15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/kernel/include/inet.hrl b/lib/kernel/include/inet.hrl
index 929b2ee294..3e64d4bb79 100644
--- a/lib/kernel/include/inet.hrl
+++ b/lib/kernel/include/inet.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -19,18 +19,11 @@
%% This record is returned by inet:gethostbyaddr/2 and inet:gethostbyname/2.
--type hostname() :: atom() | string().
--type ip4_address() :: {0..255,0..255,0..255,0..255}.
--type ip6_address() :: {0..65535,0..65535,0..65535,0..65535,
- 0..65535,0..65535,0..65535,0..65535}.
--type ip_address() :: ip4_address() | ip6_address().
--type ip_port() :: 0..65535.
-
-record(hostent,
{
- h_name :: hostname(), %% offical name of host
- h_aliases = [] :: [hostname()], %% alias list
+ h_name :: inet:hostname(), %% offical name of host
+ h_aliases = [] :: [inet:hostname()], %% alias list
h_addrtype :: 'inet' | 'inet6', %% host address type
h_length :: non_neg_integer(), %% length of address
- h_addr_list = [] :: [ip_address()] %% list of addresses from name server
+ h_addr_list = [] :: [inet:ip_address()]%% list of addresses from name server
}).