aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_tcp_transport.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
committerLoïc Hoguin <[email protected]>2012-03-12 21:57:07 +0100
commit3885912d9b61639437a738707299d2b14d40ed67 (patch)
treefff0f88d27be3d53b2132bb42cea6292117e176c /src/cowboy_tcp_transport.erl
parent5d46ad0e58623591ca97c42f76a4e0151d724047 (diff)
downloadcowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.gz
cowboy-3885912d9b61639437a738707299d2b14d40ed67.tar.bz2
cowboy-3885912d9b61639437a738707299d2b14d40ed67.zip
Rename inet:ip_port() to inet:port_number()
Thanks go to @superbobry for pointing it out.
Diffstat (limited to 'src/cowboy_tcp_transport.erl')
-rw-r--r--src/cowboy_tcp_transport.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_tcp_transport.erl b/src/cowboy_tcp_transport.erl
index c1dad62..82d193b 100644
--- a/src/cowboy_tcp_transport.erl
+++ b/src/cowboy_tcp_transport.erl
@@ -45,7 +45,7 @@ messages() -> {tcp, tcp_closed, tcp_error}.
%% </dl>
%%
%% @see gen_tcp:listen/2
--spec listen([{port, inet:ip_port()} | {ip, inet:ip_address()}])
+-spec listen([{port, inet:port_number()} | {ip, inet:ip_address()}])
-> {ok, inet:socket()} | {error, atom()}.
listen(Opts) ->
{port, Port} = lists:keyfind(port, 1, Opts),
@@ -95,7 +95,7 @@ controlling_process(Socket, Pid) ->
%% @doc Return the address and port for the other end of a connection.
%% @see inet:peername/1
-spec peername(inet:socket())
- -> {ok, {inet:ip_address(), inet:ip_port()}} | {error, atom()}.
+ -> {ok, {inet:ip_address(), inet:port_number()}} | {error, atom()}.
peername(Socket) ->
inet:peername(Socket).