summaryrefslogtreecommitdiffstats
path: root/archives/extend/2015-April.txt
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-08-29 12:39:49 +0200
committerLoïc Hoguin <[email protected]>2016-08-29 12:40:03 +0200
commitc807880f7ac73f813b2660ea81a00f7712a4e793 (patch)
treeba1d09e9b177f230665a80513b33fbd532000ce4 /archives/extend/2015-April.txt
parentb1df25a7d9cda697513650659b781b55b40898f8 (diff)
downloadninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz
ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2
ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip
Add old mailing list archives
Diffstat (limited to 'archives/extend/2015-April.txt')
-rw-r--r--archives/extend/2015-April.txt134
1 files changed, 134 insertions, 0 deletions
diff --git a/archives/extend/2015-April.txt b/archives/extend/2015-April.txt
new file mode 100644
index 00000000..5d6e0f90
--- /dev/null
+++ b/archives/extend/2015-April.txt
@@ -0,0 +1,134 @@
+From samset at wanadoo.fr Wed Apr 22 22:56:01 2015
+From: samset at wanadoo.fr (Samir Sow)
+Date: Wed, 22 Apr 2015 22:56:01 +0200
+Subject: [99s-extend] cowboy_websocket_handler
+Message-ID: <[email protected]>
+
+Hi there,
+
+I would like to learn more about the cowboy_xxxx_handler for instance the cowboy_websocket_handler :
+- is it an OTP gen_ instance ?
+- how/where the websocket_handle() is called ?
+- how websocket_info() relates to the Transport:send() operation and where/how this latter function is called?
+
+I could not find the cowboy_websocket_handler behavior in the src dir. I guess i?ve missed something.
+The code is clean but difficult to decipher by a erlang padawan like me.
+
+Why do i need to understand this ?
+
+I would like to write a generic tcp transport layer that provides an interface like the cowboy_xxx_handler to my protocol stack.
+Of course i will use ranch underneath.
+
+Neither the examples provided with ranch nor the ftp server tutorial reveals the sophisticated architecture used to handover data/context to the handler and to get reply data from the handler.
+
+Thank you for your help.
+
+Samir Sow
+
+
+From essen at ninenines.eu Wed Apr 22 23:18:29 2015
+From: essen at ninenines.eu (=?UTF-8?B?TG/Dr2MgSG9ndWlu?=)
+Date: Thu, 23 Apr 2015 00:18:29 +0300
+Subject: [99s-extend] cowboy_websocket_handler
+In-Reply-To: <[email protected]>
+References: <[email protected]>
+Message-ID: <[email protected]>
+
+Hello,
+
+On 04/22/2015 11:56 PM, Samir Sow wrote:
+> I would like to learn more about the cowboy_xxxx_handler for instance the cowboy_websocket_handler :
+> - is it an OTP gen_ instance ?
+> - how/where the websocket_handle() is called ?
+> - how websocket_info() relates to the Transport:send() operation and where/how this latter function is called?
+>
+> I could not find the cowboy_websocket_handler behavior in the src dir. I guess i?ve missed something.
+> The code is clean but difficult to decipher by a erlang padawan like me.
+
+Presumably you are looking in master. cowboy_websocket does that in
+master now. cowboy_websocket_handler is in Cowboy 1.0.
+
+--
+Lo?c Hoguin
+http://ninenines.eu
+
+From samset at wanadoo.fr Wed Apr 22 23:39:29 2015
+From: samset at wanadoo.fr (Samir Sow)
+Date: Wed, 22 Apr 2015 23:39:29 +0200
+Subject: [99s-extend] cowboy_websocket_handler
+In-Reply-To: <[email protected]>
+References: <[email protected]>
+Message-ID: <[email protected]>
+
+Thanks.
+Still i can?t figure out how you manage the data transmission from/to handler via the websocket_handle() and websocket_info() function.
+
+Samir
+
+> On 22 avr. 2015, at 23:18, Lo?c Hoguin <essen at ninenines.eu> wrote:
+>
+> Hello,
+>
+> On 04/22/2015 11:56 PM, Samir Sow wrote:
+>> I would like to learn more about the cowboy_xxxx_handler for instance the cowboy_websocket_handler :
+>> - is it an OTP gen_ instance ?
+>> - how/where the websocket_handle() is called ?
+>> - how websocket_info() relates to the Transport:send() operation and where/how this latter function is called?
+>>
+>> I could not find the cowboy_websocket_handler behavior in the src dir. I guess i?ve missed something.
+>> The code is clean but difficult to decipher by a erlang padawan like me.
+>
+> Presumably you are looking in master. cowboy_websocket does that in master now. cowboy_websocket_handler is in Cowboy 1.0.
+>
+> --
+> Lo?c Hoguin
+> http://ninenines.eu
+
+
+From essen at ninenines.eu Thu Apr 23 10:55:23 2015
+From: essen at ninenines.eu (=?UTF-8?B?TG/Dr2MgSG9ndWlu?=)
+Date: Thu, 23 Apr 2015 11:55:23 +0300
+Subject: [99s-extend] cowboy_websocket_handler
+In-Reply-To: <[email protected]>
+References: <[email protected]>
+Message-ID: <[email protected]>
+
+It's a simple function call.
+
+Assuming the variable Handler contains the name of the module, it's just
+doing Handler:websocket_info(Info, Req, State) and then checks the
+return value.
+
+On 04/23/2015 12:39 AM, Samir Sow wrote:
+> Thanks.
+> Still i can?t figure out how you manage the data transmission from/to handler via the websocket_handle() and websocket_info() function.
+>
+> Samir
+>
+>> On 22 avr. 2015, at 23:18, Lo?c Hoguin <essen at ninenines.eu> wrote:
+>>
+>> Hello,
+>>
+>> On 04/22/2015 11:56 PM, Samir Sow wrote:
+>>> I would like to learn more about the cowboy_xxxx_handler for instance the cowboy_websocket_handler :
+>>> - is it an OTP gen_ instance ?
+>>> - how/where the websocket_handle() is called ?
+>>> - how websocket_info() relates to the Transport:send() operation and where/how this latter function is called?
+>>>
+>>> I could not find the cowboy_websocket_handler behavior in the src dir. I guess i?ve missed something.
+>>> The code is clean but difficult to decipher by a erlang padawan like me.
+>>
+>> Presumably you are looking in master. cowboy_websocket does that in master now. cowboy_websocket_handler is in Cowboy 1.0.
+>>
+>> --
+>> Lo?c Hoguin
+>> http://ninenines.eu
+>
+
+--
+Lo?c Hoguin
+http://ninenines.eu
+