From 2d1301e8cb7e10eba1493c9947b74362b3ccc626 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 24 May 2011 10:14:41 +0100 Subject: [PATCH] dump active protocols and extensions at context create Signed-off-by: Andy Green --- lib/libwebsockets.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 82696a5..f3bee80 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -2749,6 +2749,9 @@ libwebsocket_create_context(int port, const char *interf, for (context->count_protocols = 0; protocols[context->count_protocols].callback; context->count_protocols++) { + + fprintf(stderr, " Protocol: %s\n", protocols[context->count_protocols].name); + protocols[context->count_protocols].owning_server = context; protocols[context->count_protocols].protocol_index = context->count_protocols; @@ -2822,6 +2825,7 @@ libwebsocket_create_context(int port, const char *interf, if (port) m = LWS_EXT_CALLBACK_SERVER_CONTEXT_CONSTRUCT; while (extensions->callback) { + fprintf(stderr, " Extension: %s\n", extensions->name); extensions->callback(context, extensions, NULL, m, NULL, NULL, 0); extensions++; -- 2.7.4