|
40 | 40 | {raw, non_neg_integer(), non_neg_integer(), binary()}].
|
41 | 41 | -type hostname() :: inet:hostname().
|
42 | 42 | -type ip_port() :: inet:port_number().
|
43 |
| --type host_or_ip() :: binary() | inet:ip_address(). |
| 43 | +% -type host_or_ip() :: binary() | inet:ip_address(). |
44 | 44 | -spec is_ssl(socket()) -> boolean().
|
45 | 45 | -spec ssl_info(socket()) -> 'nossl' | ok_val_or_error([{atom(), any()}]).
|
46 | 46 | -spec controlling_process(socket(), pid()) -> ok_or_any_error().
|
|
75 | 75 | 'nossl' | ok_val_or_error(rabbit_ssl:certificate()).
|
76 | 76 | -spec connection_string(socket(), 'inbound' | 'outbound') ->
|
77 | 77 | ok_val_or_error(string()).
|
78 |
| --spec socket_ends(socket(), 'inbound' | 'outbound') -> |
79 |
| - ok_val_or_error({host_or_ip(), ip_port(), |
80 |
| - host_or_ip(), ip_port()}). |
| 78 | +% -spec socket_ends(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket(), |
| 79 | +% 'inbound' | 'outbound') -> |
| 80 | +% ok_val_or_error({host_or_ip(), ip_port(), |
| 81 | +% host_or_ip(), ip_port()}). |
81 | 82 | -spec is_loopback(socket() | inet:ip_address()) -> boolean().
|
82 |
| --spec unwrap_socket(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket()) -> socket(). |
| 83 | +% -spec unwrap_socket(socket() | ranch_proxy:proxy_socket() | ranch_proxy_ssl:ssl_socket()) -> socket(). |
| 84 | + |
| 85 | +-dialyzer({nowarn_function, [socket_ends/2, unwrap_socket/1]}). |
83 | 86 |
|
84 | 87 | %%---------------------------------------------------------------------------
|
85 | 88 |
|
|
0 commit comments