0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Add cowboy:accept_ack/1 for a cleaner handling of the shoot message

This commit is contained in:
Loïc Hoguin 2011-12-15 20:19:02 +01:00
parent 874cdd3bda
commit e550ba7cd3
5 changed files with 19 additions and 9 deletions

View file

@ -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