diff options
author | Loïc Hoguin <[email protected]> | 2011-04-18 00:06:26 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-04-18 00:06:26 +0200 |
commit | 15dc645596b5efddda0a85ca5b6e60c41e51f4ec (patch) | |
tree | 1784e45bd147936fac8e4f885ba688bb421aa030 /src/cowboy_acceptor.erl | |
parent | 9ad32386c00b73bd3af2afa90c8e52469fdaad30 (diff) | |
download | cowboy-15dc645596b5efddda0a85ca5b6e60c41e51f4ec.tar.gz cowboy-15dc645596b5efddda0a85ca5b6e60c41e51f4ec.tar.bz2 cowboy-15dc645596b5efddda0a85ca5b6e60c41e51f4ec.zip |
Use the inet:socket() type instead of the user-defined one.
Diffstat (limited to 'src/cowboy_acceptor.erl')
-rw-r--r-- | src/cowboy_acceptor.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_acceptor.erl b/src/cowboy_acceptor.erl index ac89874..db70817 100644 --- a/src/cowboy_acceptor.erl +++ b/src/cowboy_acceptor.erl @@ -20,7 +20,7 @@ %% API. --spec start_link(LSocket::socket(), Transport::module(), +-spec start_link(LSocket::inet:socket(), Transport::module(), Protocol::module(), Opts::term(), ReqsSup::pid()) -> {ok, Pid::pid()}. start_link(LSocket, Transport, Protocol, Opts, ReqsSup) -> Pid = spawn_link(?MODULE, acceptor, @@ -29,7 +29,7 @@ start_link(LSocket, Transport, Protocol, Opts, ReqsSup) -> %% Internal. --spec acceptor(LSocket::socket(), Transport::module(), +-spec acceptor(LSocket::inet:socket(), Transport::module(), Protocol::module(), Opts::term(), ReqsSup::pid()) -> no_return(). acceptor(LSocket, Transport, Protocol, Opts, ReqsSup) -> case Transport:accept(LSocket, 2000) of |