aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_ssl_transport.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-18 13:52:32 +0200
committerLoïc Hoguin <[email protected]>2011-04-18 13:52:32 +0200
commit63a92df14e25599c6903a8178b5e89acc4482645 (patch)
treee52aa7c39e54dd0729b3b435100e1294045106e1 /src/cowboy_ssl_transport.erl
parent731d839323e74b95a326001e4e424a1f2b18902e (diff)
downloadcowboy-63a92df14e25599c6903a8178b5e89acc4482645.tar.gz
cowboy-63a92df14e25599c6903a8178b5e89acc4482645.tar.bz2
cowboy-63a92df14e25599c6903a8178b5e89acc4482645.zip
Replace port_number() by ip_port() from kernel/include/inet.hrl.
Diffstat (limited to 'src/cowboy_ssl_transport.erl')
-rw-r--r--src/cowboy_ssl_transport.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cowboy_ssl_transport.erl b/src/cowboy_ssl_transport.erl
index 3909409..e7a96ed 100644
--- a/src/cowboy_ssl_transport.erl
+++ b/src/cowboy_ssl_transport.erl
@@ -19,6 +19,7 @@
-opaque sslsocket() :: term().
-include("include/types.hrl").
+-include_lib("kernel/include/inet.hrl").
%% API.
@@ -28,7 +29,7 @@ name() -> ssl.
-spec messages() -> {ssl, ssl_closed, ssl_error}.
messages() -> {ssl, ssl_closed, ssl_error}.
--spec listen([{port, Port::port_number()} | {certfile, CertPath::string()}
+-spec listen([{port, Port::ip_port()} | {certfile, CertPath::string()}
| {keyfile, KeyPath::string()} | {password, Password::string()}])
-> {ok, LSocket::sslsocket()} | {error, Reason::atom()}.
listen(Opts) ->
@@ -71,7 +72,7 @@ controlling_process(Socket, Pid) ->
ssl:controlling_process(Socket, Pid).
-spec peername(Socket::sslsocket())
- -> {ok, {Address::inet:ip_address(), Port::port_number()}} | {error, atom()}.
+ -> {ok, {Address::ip_address(), Port::ip_port()}} | {error, atom()}.
peername(Socket) ->
ssl:peername(Socket).