Re: g_io_add_watch() callback called constantly



I wrote:
What is it that you create the GIOChannel for?

Ah, you said it yourself, g_iochannel_new_file(), so for a plain file
presumably. You mean that the processes take turns appending their
"messages" to the file, and the other process then reads it from the
file, and then appends its own "reply"?

I am not sure using watched GIOChannels connected to plain files for
inter-process communication is necessarily something that has been
tested at all, especially not on Windows. It sounds like a quite, eh,
unique idea. I don't know if there even exists any mechanism on
Windows that would enable the kind of select() or poll() functionality
that presumably works fine also for plain files on Unix. You might
have better luck using pipes or sockets like more or less everybody
else.

--tml



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