aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_tcp.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_tcp.erl')
-rw-r--r--src/gun_tcp.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gun_tcp.erl b/src/gun_tcp.erl
index 80bc45b..0f5addc 100644
--- a/src/gun_tcp.erl
+++ b/src/gun_tcp.erl
@@ -14,6 +14,7 @@
-module(gun_tcp).
+-export([name/0]).
-export([messages/0]).
-export([connect/4]).
-export([send/2]).
@@ -21,6 +22,8 @@
-export([sockname/1]).
-export([close/1]).
+name() -> tcp.
+
messages() -> {tcp, tcp_closed, tcp_error}.
-spec connect(inet:ip_address() | inet:hostname(),