Re: GIOChannels, GNet, GOIO
- From: Andrewlanoix aol com
- To: gtk-devel-list gnome org
- Cc: a rottmann gmx at
- Subject: Re: GIOChannels, GNet, GOIO
- Date: Mon, 10 May 2004 18:50:23 -0400
Andy,
Firstly, GNet’s GConn is a wrapper layer above GTcpSocket, which does allow you to get back the Glib IO Channel. For your application it sounds like you need to write at the GTcpSocket layer and can reuse code from GConn, without doing the buffering etc.
Secondly, you should be aware that the windows glib event loop does not support socket watches using g_source* since the event loop knows nothing about sockets. On Windows Tor and I implemented all the socket code in the g_io_channel* layer. This was done in order to simplify the task of getting GNet ported to Windows, which only requires the g_io_channel* layer. See Bug 120299: “Win32 iochannel/g_poll/etc code needs rewrite” http://bugzilla.gnome.org/show_bug.cgi?id=120299
Regards,
Andrew Lanoix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]