aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_transport.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ranch_transport.erl')
-rw-r--r--src/ranch_transport.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl
index 6168b35..fe06420 100644
--- a/src/ranch_transport.erl
+++ b/src/ranch_transport.erl
@@ -52,6 +52,11 @@
-callback connect(string(), inet:port_number(), opts())
-> {ok, socket()} | {error, atom()}.
+%% Experimental. Open a connection to the given host and port number
+%% with a timeout.
+-callback connect(string(), inet:port_number(), opts(), timeout())
+ -> {ok, socket()} | {error, atom()}.
+
%% Receive data from a socket in passive mode.
-callback recv(socket(), non_neg_integer(), timeout())
-> {ok, any()} | {error, closed | timeout | atom()}.