Re: Threads, sockets and windows



> > But on windows there is no poll() function. Of course I can use
> > g_async_queue, but doing so I can't poll queue and network socket
> > simultaneously.
> 
> Under Window you can use select(). For myself I've written for Win32 a 
> poll() function that internally use select() (so the code remains clean 
> and portable).
(Whoops. I should have pressed reply to all. Sorry for the
inconvenience, Frank.)

The Windows select() function only works for sockets. One cannot give it
a regular file descriptor (like a pipe). Note that sockets are no file
descriptors on windows.

Attachment: signature.asc
Description: This is a digitally signed message part



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