From 37e64f50df640803625771bc3655b6db6c351493 Mon Sep 17 00:00:00 2001 From: juhlig Date: Mon, 24 Jun 2019 13:18:31 +0200 Subject: Add missing specs --- src/ranch_tcp.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ranch_tcp.erl') diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl index 3a6e4d9..3b4e4c3 100644 --- a/src/ranch_tcp.erl +++ b/src/ranch_tcp.erl @@ -70,12 +70,14 @@ -type opts() :: [opt()]. -export_type([opts/0]). +-spec name() -> tcp. name() -> tcp. -spec secure() -> boolean(). secure() -> false. +-spec messages() -> {tcp, tcp_closed, tcp_error, tcp_passive}. messages() -> {tcp, tcp_closed, tcp_error, tcp_passive}. -spec listen(ranch:transport_opts(opts())) -> {ok, inet:socket()} | {error, atom()}. @@ -94,6 +96,7 @@ listen(TransOpts) -> %% 'binary' and 'list' are disallowed but they are handled %% specifically as they do not have 2-tuple equivalents. +-spec disallowed_listen_options() -> [atom()]. disallowed_listen_options() -> [active, header, mode, packet, packet_size, line_delimiter, reuseaddr]. -- cgit v1.2.3