aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-17 23:57:30 +0200
committerLoïc Hoguin <[email protected]>2011-04-17 23:57:30 +0200
commit9ad32386c00b73bd3af2afa90c8e52469fdaad30 (patch)
tree8b7c25f22f0c70e2ac053c699a3cc7e2a7a61403 /include
parent734f57aa8a79a942767d0707a053dbee6caa1290 (diff)
downloadcowboy-9ad32386c00b73bd3af2afa90c8e52469fdaad30.tar.gz
cowboy-9ad32386c00b73bd3af2afa90c8e52469fdaad30.tar.bz2
cowboy-9ad32386c00b73bd3af2afa90c8e52469fdaad30.zip
Use the inet:ip_address() type instead of the user-defined one.
Diffstat (limited to 'include')
-rw-r--r--include/http.hrl2
-rw-r--r--include/types.hrl4
2 files changed, 1 insertions, 5 deletions
diff --git a/include/http.hrl b/include/http.hrl
index a3b2e9b..ad95c0f 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -21,7 +21,7 @@
%% Request.
method = 'GET' :: http_method(),
version = {1, 1} :: http_version(),
- peer = undefined :: undefined | {Address::ip_address(), Port::port_number()},
+ peer = undefined :: undefined | {Address::inet:ip_address(), Port::port_number()},
host = undefined :: undefined | path_tokens(),
raw_host = undefined :: undefined | string(),
path = undefined :: undefined | '*' | path_tokens(),
diff --git a/include/types.hrl b/include/types.hrl
index bdd4c5f..5938f0e 100644
--- a/include/types.hrl
+++ b/include/types.hrl
@@ -18,10 +18,6 @@
-type posix() :: atom().
-opaque socket() :: term().
-opaque sslsocket() :: term().
--type ipv4_address() :: {0..255, 0..255, 0..255, 0..255}.
--type ipv6_address() :: {0..65535, 0..65535, 0..65535, 0..65535,
- 0..65535, 0..65535, 0..65535, 0..65535}.
--type ip_address() :: ipv4_address() | ipv6_address().
-type port_number() :: 0..65535.
-type bindings() :: list({Key::atom(), Value::string()}).