dump active protocols and extensions at context create
authorAndy Green <andy@warmcat.com>
Tue, 24 May 2011 09:14:41 +0000 (10:14 +0100)
committerAndy Green <andy@warmcat.com>
Tue, 24 May 2011 09:14:41 +0000 (10:14 +0100)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c

index 82696a5..f3bee80 100644 (file)
@@ -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++;