summaryrefslogtreecommitdiff
path: root/src/rabbit_networking.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 15:14:30 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 15:14:30 +0100
commit04664781690cc3b7451a60aa6066ba01781b6758 (patch)
treef72c1bd383c7a6dee6cbadf6574c00d48e52fee1 /src/rabbit_networking.erl
parent334d32e77e309e1e49d2f0710ff98208a4bb5c08 (diff)
downloadrabbitmq-server-04664781690cc3b7451a60aa6066ba01781b6758.tar.gz
because inet doesn't export all its types
Diffstat (limited to 'src/rabbit_networking.erl')
-rw-r--r--src/rabbit_networking.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 25ca5914..758741e8 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -68,14 +68,14 @@
-type(listener() ::
#listener{node :: rabbit:erlang_node(),
protocol :: atom(),
- host :: inet:hostname(),
- port :: inet:ip_port()}).
+ host :: rabbit:hostname(),
+ port :: rabbit:ip_port()}).
-spec(start/0 :: () -> 'ok').
--spec(start_tcp_listener/2 :: (inet:hostname(), inet:ip_port()) -> 'ok').
--spec(start_ssl_listener/3 :: (inet:hostname(), inet:ip_port(), [rabbit:info()])
+-spec(start_tcp_listener/2 :: (rabbit:hostname(), rabbit:ip_port()) -> 'ok').
+-spec(start_ssl_listener/3 :: (rabbit:hostname(), rabbit:ip_port(), [rabbit:info()])
-> 'ok').
--spec(stop_tcp_listener/2 :: (inet:hostname(), inet:ip_port()) -> 'ok').
+-spec(stop_tcp_listener/2 :: (rabbit:hostname(), rabbit:ip_port()) -> 'ok').
-spec(active_listeners/0 :: () -> [listener()]).
-spec(node_listeners/1 :: (rabbit:erlang_node()) -> [listener()]).
-spec(connections/0 :: () -> [connection()]).
@@ -86,7 +86,7 @@
-spec(connection_info_all/1 :: ([rabbit:info_key()]) -> [[rabbit:info()]]).
-spec(close_connection/2 :: (pid(), string()) -> 'ok').
-spec(on_node_down/1 :: (rabbit:erlang_node()) -> 'ok').
--spec(check_tcp_listener_address/3 :: (atom(), inet:hostname(), inet:ip_port()) ->
+-spec(check_tcp_listener_address/3 :: (atom(), rabbit:hostname(), rabbit:ip_port()) ->
{inet:ip_address(), atom()}).
-endif.