Re: [gnet-dev] Any plans to move more code to glib2?



On Wed, 2002-09-18 at 17:28, David Helder wrote:
> What are the advantages of switching to GObject/GError?  I think of
> GTcpSocket as more of a GIOChannel than a GObject-thing.  Or is GIOChannel
> now derived from GObject?  Ultimately, the question is would using
> GObject/GError make GNet significantly better (in functionality) or easier
> to use.
> 
> If there's huge demand for it, we can switch.  We'd probably create a CVS
> branch for a GNet 2.0 and implement it there.

I'm pretty happy with GNet the way it is, and I'm using it. I'd be even
happier if Ian's patch/suggestion to set GIOChannels unbuffered and with
NULL encoding was implemented, though.

If you choose to use more GLib 2.0 features, be careful what you use
signals for, by the way. They are rumoured to not be very fast. Using
GError might be a good idea, though - it could make for less work for
library users, and it's not a huge change.

-- 
Hans Petter



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