Re: Threads, sockets and windows

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

 



> > 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

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux