diff options
author | Loïc Hoguin <[email protected]> | 2011-04-18 13:52:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-04-18 13:52:32 +0200 |
commit | 63a92df14e25599c6903a8178b5e89acc4482645 (patch) | |
tree | e52aa7c39e54dd0729b3b435100e1294045106e1 /src/cowboy_ssl_transport.erl | |
parent | 731d839323e74b95a326001e4e424a1f2b18902e (diff) | |
download | cowboy-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.erl | 5 |
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). |