diff options
author | João Henrique Ferreira de Freitas <[email protected]> | 2020-05-05 20:48:09 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-06-18 15:09:46 +0200 |
commit | eeb332cff86912f58daf247ba53ffe9b43e36128 (patch) | |
tree | bbddc50c04732ada6a698f189371f5fc52c1dfd4 /doc/src/guide/protocols.asciidoc | |
parent | 39828681c7dae5c96e8d6ccf6411802a9b1fb470 (diff) | |
download | ranch-eeb332cff86912f58daf247ba53ffe9b43e36128.tar.gz ranch-eeb332cff86912f58daf247ba53ffe9b43e36128.tar.bz2 ranch-eeb332cff86912f58daf247ba53ffe9b43e36128.zip |
Fix the correct number and description of Protocol:start_link/3 function
Diffstat (limited to 'doc/src/guide/protocols.asciidoc')
-rw-r--r-- | doc/src/guide/protocols.asciidoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/guide/protocols.asciidoc b/doc/src/guide/protocols.asciidoc index b455143..73a0bf5 100644 --- a/doc/src/guide/protocols.asciidoc +++ b/doc/src/guide/protocols.asciidoc @@ -8,7 +8,7 @@ protocol logic executed in this process. All protocol handlers must implement the `ranch_protocol` behavior which defines a single callback, `start_link/3`. This callback is responsible for spawning a new process for handling the connection. -It receives four arguments: the name of the listener, the socket, the +It receives three arguments: the name of the listener, the transport handler being used and the protocol options defined in the call to `ranch:start_listener/5`. This callback must return `{ok, Pid}`, with `Pid` the pid of the new process. |