Re: got_chunk signal
- From: Bill Peck <bill pecknet com>
- To: Dan Winship <danw gnome org>
- Cc: libsoup-list gnome org
- Subject: Re: got_chunk signal
- Date: Tue, 24 Sep 2013 11:58:54 -0400
Hi Dan,
I'm getting closer but I'm stuck because I'm trying to use soup_session_send_async instead of soup_request_send_async. Correct me if I'm wrong but it looks like soup_request_* is the old way to do things and SoupSession is the cleaner approach?
Where I'm getting stuck is in my call back:
static void
multipart_handling_cb (GObject *source, GAsyncResult *async_result, gpointer data)
{
GMainLoop *loop = (GmainLoop *) data;
SoupSession *session = SOUP_SESSION (source);
GError *error = NULL;
GInputStream *in;
SoupMessage *message;
in = soup_session_send_finish (session, async_result, &error);
message = // How do I get message from session?
multipart = soup_multipart_input_stream)new (message, in);
.
.
.
}
I'm not sure how to get SoupMessage from SoupSession.
Am I pointed in the right direction? Sorry if these are silly questions.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]