diff options
author | Essien Ita Essien <essiene@gmail.com> | 2009-01-11 19:03:15 +0100 |
---|---|---|
committer | Essien Ita Essien <essiene@gmail.com> | 2009-01-11 19:03:15 +0100 |
commit | 3e64595aa92a809ac176a86a2dbe41b51f0633cf (patch) | |
tree | 5e05d0b7e88a16dfc9184d1cd3ac49b1b3928881 /include/rabbit.hrl | |
parent | 1a0026b2b0eca29eb055f3cb5400e62ea514dc93 (diff) | |
download | rabbitmq-server-3e64595aa92a809ac176a86a2dbe41b51f0633cf.tar.gz |
Redefine type socket() in terms of rabbit's ssl_socket which is
defined in terms of ssl's sslsocket
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r-- | include/rabbit.hrl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 17499507..88286bf8 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -69,10 +69,17 @@ -ifdef(use_specs). -include("rabbit_framing_spec.hrl"). +-include_lib("ssl/src/ssl_int.hrl"). -type(maybe(T) :: T | 'none'). -type(erlang_node() :: atom()). --type(socket() :: port()). +-type(sslsocket() :: + #sslsocket{fd :: 'nil' | integer(), + pid :: 'nil' | pid()}). +-type(ssl_socket() :: + #ssl_socket{tcp :: port(), + ssl :: sslsocket()}). +-type(socket() :: port() | ssl_socket()). -type(thunk(T) :: fun(() -> T)). -type(info_key() :: atom()). -type(info() :: {info_key(), any()}). |