aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_tcp.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-09-26 12:08:11 +0200
committerLoïc Hoguin <[email protected]>2018-09-26 12:08:11 +0200
commitf328916937c67b3c9679e4f11d4594c39d36f85d (patch)
tree53c8c3df47443227fc2800ffe450c94ab7e58478 /src/gun_tcp.erl
parentbaf0e420917ca1cb2806f8594a6cdb4710d2793d (diff)
downloadgun-f328916937c67b3c9679e4f11d4594c39d36f85d.tar.gz
gun-f328916937c67b3c9679e4f11d4594c39d36f85d.tar.bz2
gun-f328916937c67b3c9679e4f11d4594c39d36f85d.zip
Keep track of the intermediaries the connection go through
Also augment the CONNECT tests to confirm that the intermediaries are accounted for.
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(),