Re: question about libsoup dependency



Thank for you all the answers.

If my program just has a glib main loop, do I still need X11 in my
linux environment to run my program?

And my understanding is libSoup is for HTTP communication. For socket
based communication (server and client), I need to use GIOChannel? Is
that correct?


On Wed, Feb 10, 2010 at 2:24 PM, Dan Winship <danw gnome org> wrote:
> On 02/10/2010 05:07 PM, n179911 wrote:
>> HI,
>>
>> From LibSoup webpage, it said 'It uses GObjects and the glib main
>> loop, to integrate well with GNOME applications,'
>>
>> can you please tell me if I can run LibSoup without calling 'gtk_main()'?
>> If yes, how can I create a main loop which LibSoup needs?
>
> Yes, just make a GMainLoop. See
> http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html
>
> Also, most of the test programs in the libsoup sources (tests/ subdir)
> give examples of this.
>
> -- Dan
>


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