Re: (no subject) [network stuff and the gtk main loop]
- From: Tim Müller <zen18864 zen co uk>
- To: christophe Meyer <chr meyer nerim net>, gtk-app-devel-list gnome org
- Subject: Re: (no subject) [network stuff and the gtk main loop]
- Date: Tue, 10 Feb 2004 10:11:21 +0000
On Monday 09 February 2004 21:50, christophe Meyer wrote:
How can i do to make my gtk application listen on a network socket
without freezing my interface ? but react when a message arrives on
the socket ?
* use GLib's GIOChannels, in particular g_io_add_watch [1] (this is the hard
way)
* use the GNet library (http://www.gnetlibrary.org), e.g. the GServer
interface [2] (this is the nice'n'easy way).
* alternatively, check out the libgnetwork library
Cheers
-Tim
[1] http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html
[2] http://www.gnetlibrary.org/docs/gnet-server.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]