aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-12-15 20:19:02 +0100
committerLoïc Hoguin <[email protected]>2011-12-15 20:19:02 +0100
commite550ba7cd3e63d8d6e45336d6cadb00605d548dd (patch)
tree0f415bffa0bcb397a63a92c5cfd4a7925036cbce /src/cowboy_protocol.erl
parent874cdd3bda849d091ea4e418ffda8a591f0f44a6 (diff)
downloadcowboy-e550ba7cd3e63d8d6e45336d6cadb00605d548dd.tar.gz
cowboy-e550ba7cd3e63d8d6e45336d6cadb00605d548dd.tar.bz2
cowboy-e550ba7cd3e63d8d6e45336d6cadb00605d548dd.zip
Add cowboy:accept_ack/1 for a cleaner handling of the shoot message
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r--src/cowboy_protocol.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index 9dc35d9..34bb1a1 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -24,9 +24,9 @@
%% starting the listener. The <em>start_link/4</em> function must follow
%% the supervisor start function specification.
%%
-%% After initializing your protocol, it is recommended to wait to
-%% receive a message containing the atom 'shoot', as it will ensure
-%% Cowboy has been able to fully initialize the socket.
+%% After initializing your protocol, it is recommended to call the
+%% function cowboy:accept_ack/1 with the ListenerPid as argument,
+%% as it will ensure Cowboy has been able to fully initialize the socket.
%% Anything you do past this point is up to you!
%%
%% If you need to change some socket options, like enabling raw mode