Missing callback for signal "request-read"



Hi,

I'm fairly new to libsoup, but have made a simple server running.
One thing I have observed that I do not understand is that I do never get the callback for the signal "request-read", eventhough I get the callback for both "request-started" and "request-finished" signals. Shouldn't I get the callback for "request-read" in between the callbacks for "request-started" and "request-finished" signals?

<code>

   soup_server = soup_server_new(SOUP_SERVER_PORT, port, NULL);


   g_signal_connect (G_OBJECT (soup_server), "request-started",
                     G_CALLBACK(on_request_started),
                     NULL);

   g_signal_connect (G_OBJECT (soup_server), "request-read",
                     G_CALLBACK(on_request_read),
                     NULL);

   g_signal_connect (G_OBJECT (soup_server), "request-finished",
                     G_CALLBACK(on_request_finished),
                     NULL);

   g_signal_connect (G_OBJECT (soup_server), "request-aborted",
                     G_CALLBACK(on_request_aborted),
                     NULL);

The callback functions are all just making a simple printout:
void on_request_<xxx>(SoupServer * server,
                    SoupMessage * message,
                    SoupClientContext *client,
                    gpointer user_data)
   {
   printf("Function: %s Line: %d\n", __func__, __LINE__);
   return;
   }
</code>

Best regards
Egon Andersen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]