From 6d8b249e54c849948f6d4cdb021cb44340ec289f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 13 May 2019 10:30:26 +0200 Subject: Add the passive messages to ranch_transport:messages/0 --- doc/src/manual/ranch_transport.asciidoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/src/manual/ranch_transport.asciidoc b/doc/src/manual/ranch_transport.asciidoc index 50c0b0a..b7ec6d2 100644 --- a/doc/src/manual/ranch_transport.asciidoc +++ b/doc/src/manual/ranch_transport.asciidoc @@ -115,9 +115,10 @@ means a random available port number will be chosen. [source,erlang] ---- messages() - -> {OK :: atom(), - Closed :: atom(), - Error :: atom()} + -> {OK :: atom(), + Closed :: atom(), + Error :: atom(), + Passive :: atom()} ---- Return the tuple keys for the messages sent by the socket. @@ -284,6 +285,8 @@ The exact type will vary depending on the transport module. == Changelog +* *2.0*: The callback `messages/0` return value was updated to + include the passive message for `{active, N}`. * *1.6*: The `socket()` type was added for documentation purposes. * *1.6*: The type of the sendfile filename was extended. -- cgit v1.2.3