When are these g_io_channel_*() input conditions occuring ?



Hello all,

This is a new thread, based upon a very recent thread in this list, and a some things I asked myself in the (recent) past when I programmed a g_io_channel watcher callback.

I used, for my GIOChannel, the condition G_IO_IN, in order to have my callback called whenever there was any input data available. Although I could imagine when one would possibly get any of both the G_IO_PRI (I guess the socket's O-O-B condition is triggering it ?) or G_IO_HUP conditions, still I had wondered when one would possibly get G_IO_NVAL ? Maybe that last one is only applicable in case of nonblocking operations ?

I must've missed some documentation ?

Kind regards,

PhB

...

That web site is really useful, but it didn't point out that you need to handle G_IO_HUP, G_IO_NVAL, (and maybe G_IO_PRI). Handling these helped my troubles, but I don't know if these have anything to do with your trouble.



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