From 9ad32386c00b73bd3af2afa90c8e52469fdaad30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 17 Apr 2011 23:57:30 +0200 Subject: Use the inet:ip_address() type instead of the user-defined one. --- include/http.hrl | 2 +- include/types.hrl | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'include') 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()}). -- cgit v1.2.3