[gnet-dev] FW: [gnet] g_io_add_watch_full() with a GTK main loop?
- From: martyn 2 russell bt com
- To: gnet-dev gnetlibrary org
- Subject: [gnet-dev] FW: [gnet] g_io_add_watch_full() with a GTK main loop?
- Date: Fri, 4 Apr 2003 19:04:46 +0100
> has anyone been successfull at doing this?
> can anyone give me some pointers?
>
> I am trying to use a gtk_main(). I create the GTcpSocket and
> then start it
> connecting (asynchronously) then create a simple window. The
> window is
> fine, but the socket never comes back?! If I use the
> g_main_() functions to
> use the glib main loop, it is all fine.
I managed to get this going, and found that it was failing because I was
using gtk_init_check(...) THEN gnet_init(...). If I used gnet_init(...)
first it was fine?!?! Perhaps this should be documented?
Also, if I used g_io_channel_read_chars(...) and there is NOTHING to read,
should it return with 0 bytes OR should it wait for more input then return?
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]