Re: polling sockets using glib



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 10, 2006 at 08:48:54PM +0200, Soeren Sandmann wrote:
Peter Robinson <pjr itee uq edu au> writes:

I am writing a server application (using glib) in which I want to be 
able to (frequently) turn polling on and off for given sockets.

You may want to take a look at this:

http://www.daimi.au.dk/~sandmann/watch.h
http://www.daimi.au.dk/~sandmann/watch.c

Yes. When I dont want to pull all of GTK in, I "do it myself" as well.

The change to glib becomes interesting when you are using glib anyway
(for me it only happens in GTK projects: then, the glib channels blend
quite well with the GTK event loop).

I wouldn't use glib on its own. Its interface is a tad too heavy for my
taste. But as a foundation to GTK it makes sense.

Regards
- -- tomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFLeiIBcgs9XrR2kYRApg3AJ93GpXWwxh4QWOseGnq7XUdjH1mwgCfftHp
dZjY5dWupchec0AtrGF9kDk=
=aTLG
-----END PGP SIGNATURE-----




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