summaryrefslogtreecommitdiff
path: root/lib/extension.c
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2011-05-23 10:00:03 +0100
committerAndy Green <andy@warmcat.com>2011-05-23 10:00:03 +0100
commita41314f3bf6c6f827c7af95dc17431be5b5fa711 (patch)
treecdf9f882099a6d8e5e58cc99e2c4893233c9f59e /lib/extension.c
parent8214a0447e6ffbd4dae0dd66a8d1699d21b8948b (diff)
introduce x google mux very draft indeed
This is initial x-google-mux support. It's disabled by default since it's very pre-alpha. 1) To enable it, reconfigure with --enable-x-google-mux 2) It conflicts with deflate-stream, use the -u switch on the test client to disable deflate-stream 3) It deviates from the google standard by sending full headers in the addchannel subcommand rather than just changed ones from original connect 4) Quota is not implemented yet 5) Close of subchannel is not really implemented yet 6) Google opcode 0xf is changed to 0x7 to account for v7 protocol changes to opcode layout However despite those caveats, in fact it can run the test client reliably over one socket (both dumb-increment and lws-mirror-protocol), you can open a browser on the same test server too and see the circles, etc. Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'lib/extension.c')
-rw-r--r--lib/extension.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/extension.c b/lib/extension.c
index df62bd5..8909308 100644
--- a/lib/extension.c
+++ b/lib/extension.c
@@ -1,8 +1,16 @@
#include "private-libwebsockets.h"
#include "extension-deflate-stream.h"
+#include "extension-x-google-mux.h"
struct libwebsocket_extension libwebsocket_internal_extensions[] = {
+#ifdef LWS_EXT_GOOGLE_MUX
+ {
+ "x-google-mux",
+ lws_extension_callback_x_google_mux,
+ sizeof (struct lws_ext_x_google_mux_conn)
+ },
+#endif
{
"deflate-stream",
lws_extension_callback_deflate_stream,