blob: 3b29489d99ee767ec8d87df3649e07861bffef20 (
plain) (
tree)
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [99s-extend] cowboy_websocket_handler
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_websocket_handler&In-Reply-To=%3C43C48B2E-0396-43E0-B82C-E524C8274004%40wanadoo.fr%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Next" HREF="000528.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[99s-extend] cowboy_websocket_handler</H1>
<B>Samir Sow</B>
<A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20cowboy_websocket_handler&In-Reply-To=%3C43C48B2E-0396-43E0-B82C-E524C8274004%40wanadoo.fr%3E"
TITLE="[99s-extend] cowboy_websocket_handler">samset at wanadoo.fr
</A><BR>
<I>Wed Apr 22 22:56:01 CEST 2015</I>
<P><UL>
<LI>Next message: <A HREF="000528.html">[99s-extend] cowboy_websocket_handler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#527">[ date ]</a>
<a href="thread.html#527">[ thread ]</a>
<a href="subject.html#527">[ subject ]</a>
<a href="author.html#527">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Next message: <A HREF="000528.html">[99s-extend] cowboy_websocket_handler
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#527">[ date ]</a>
<a href="thread.html#527">[ thread ]</a>
<a href="subject.html#527">[ subject ]</a>
<a href="author.html#527">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend
mailing list</a><br>
</body></html>
|