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.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl
index 33c6fad..9188965 100644
--- a/src/ranch_transport.erl
+++ b/src/ranch_transport.erl
@@ -49,6 +49,8 @@
-> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}.
-callback sockname(socket())
-> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}.
+-callback shutdown(socket(), read | write | read_write)
+ -> ok | {error, atom()}.
-callback close(socket()) -> ok.
%% A fallback for transports that don't have a native sendfile implementation.