aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_transport.erl
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-05-14 11:27:04 +0200
committerLoïc Hoguin <[email protected]>2019-05-18 21:50:44 +0200
commitb1e6406e4f0871c656f92fdd0755c8ef82be2818 (patch)
treeb628d0e65859384d8cbc7315d96cfdbb22f8b742 /src/ranch_transport.erl
parentc7dcc9cb1362e397d8d3d184b0643f2ca50c032e (diff)
downloadranch-b1e6406e4f0871c656f92fdd0755c8ef82be2818.tar.gz
ranch-b1e6406e4f0871c656f92fdd0755c8ef82be2818.tar.bz2
ranch-b1e6406e4f0871c656f92fdd0755c8ef82be2818.zip
Add support for UNIX domain sockets
It was working already but the types were wrong and some small details needed to be corrected.
Diffstat (limited to 'src/ranch_transport.erl')
-rw-r--r--src/ranch_transport.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl
index c968868..2344733 100644
--- a/src/ranch_transport.erl
+++ b/src/ranch_transport.erl
@@ -56,9 +56,9 @@
-callback controlling_process(socket(), pid())
-> ok | {error, closed | not_owner | atom()}.
-callback peername(socket())
- -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}.
+ -> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}.
-callback sockname(socket())
- -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}.
+ -> {ok, {inet:ip_address(), inet:port_number()} | {local, binary()}} | {error, atom()}.
-callback shutdown(socket(), read | write | read_write)
-> ok | {error, atom()}.
-callback close(socket()) -> ok.