From f328916937c67b3c9679e4f11d4594c39d36f85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 26 Sep 2018 12:08:11 +0200 Subject: Keep track of the intermediaries the connection go through Also augment the CONNECT tests to confirm that the intermediaries are accounted for. --- src/gun_tcp.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gun_tcp.erl') 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(), -- cgit v1.2.3