diff options
author | Loïc Hoguin <[email protected]> | 2011-12-15 20:19:02 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-12-15 20:19:02 +0100 |
commit | e550ba7cd3e63d8d6e45336d6cadb00605d548dd (patch) | |
tree | 0f415bffa0bcb397a63a92c5cfd4a7925036cbce /README.md | |
parent | 874cdd3bda849d091ea4e418ffda8a591f0f44a6 (diff) | |
download | cowboy-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 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -244,9 +244,10 @@ is the pid to the listener's gen_server, managing the connections. Socket is of course the client socket; Transport is the module name of the chosen transport handler and Opts is protocol options defined when starting the listener. -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. Anything you do past this point is up to you! +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 for example, you can call the <em>Transport:setopts/2</em> function. It is the protocol's |