aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_tcp_transport.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_tcp_transport.erl')
-rw-r--r--src/cowboy_tcp_transport.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cowboy_tcp_transport.erl b/src/cowboy_tcp_transport.erl
index 5bc80fe..c1aeabc 100644
--- a/src/cowboy_tcp_transport.erl
+++ b/src/cowboy_tcp_transport.erl
@@ -13,14 +13,19 @@
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-module(cowboy_tcp_transport).
--export([name/0, listen/1, accept/1, recv/3, send/2, setopts/2,
- controlling_process/2, peername/1, close/1]).
+-export([name/0, messages/0, listen/1, accept/1, recv/3, send/2, setopts/2,
+ controlling_process/2, peername/1, close/1]). %% API.
-include("include/types.hrl").
+%% API.
+
-spec name() -> tcp.
name() -> tcp.
+-spec messages() -> {tcp, tcp_closed, tcp_error}.
+messages() -> {tcp, tcp_closed, tcp_error}.
+
-spec listen([{port, Port::port_number()}])
-> {ok, LSocket::socket()} | {error, Reason::posix()}.
listen(Opts) ->