Re: [gnet-dev] Re: [gimpwin-dev] Windows sockets



On Thu, 2002-03-07 at 16:47, Tor Lillqvist wrote:
> Hmm. You are looking at some rather old gmain.c then, if line 216 has
> something related to that.

I was looking at lxr on cvs.gnome.org, which apparently is very out of
date.

> But anyway, on Windows, the fd field in a GPollFD, is not a "file
> descriptor" as on Unix, but a Windows HANDLE that can be used in the
> WaitForMultipleObjects() function. In
> giowin32.c:g_io_win32_create_watch():
> 
>   watch->pollfd.fd = (gint) win32_channel->data_avail_event;
> 
> So it indeed is the data_avail_event that the code in gmain.c will
> eventuall be waiting on.

Okay, so it should work; hmm any idea why the mainloop isn't waking up?
Does anyone have a test case that illustrates the problem?

Thanks,

John





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