SoupSessionSync

SoupSessionSync — Soup session for blocking I/O in multithreaded programs.

Synopsis




struct      SoupSessionSync;
SoupSession* soup_session_sync_new          (void);
SoupSession* soup_session_sync_new_with_options
                                            (const char *optname1,
                                             ...);

Object Hierarchy


  GObject
   +----SoupSession
         +----SoupSessionSync

Implemented Interfaces

SoupSessionSync implements SoupMessageFilter.

Description

SoupSessionSync is an implementation of SoupSession that uses synchronous I/O, intended for use in multi-threaded programs.

Note that you cannot use soup_session_queue_message() with a synchronous session. You can only use soup_session_send_message().

Details

struct SoupSessionSync

struct SoupSessionSync;


soup_session_sync_new ()

SoupSession* soup_session_sync_new          (void);

Creates an synchronous SoupSession with the default options.

Returns : the new session.

soup_session_sync_new_with_options ()

SoupSession* soup_session_sync_new_with_options
                                            (const char *optname1,
                                             ...);

Creates an synchronous SoupSession with the specified options.

optname1 : name of first property to set
... : value of optname1, followed by additional property/value pairs
Returns : the new session.