DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2107
Version: 1.1.9


> I find that, under WIN32, Fl::add_fd works only superficially
> when the monitored file descriptor is an anonymous pipe. I don't
> know if you know that already perfectly, but the documentation
> is silent on this subject. 

    BTW, the docs on Fl::add_fd() seem to be fairly distinct
    about this:
    http://fltk.org/documentation.php/doc-1.1/Fl.html#Fl.add_fd

    Quoting the docs:
    "Under UNIX any file descriptor can be monitored (files, 
     devices, pipes, sockets, etc.) **Due to limitations in
     Microsoft Windows, WIN32 applications can only monitor sockets.**"

    So I read that to mean what you're doing is specifically not
    supported.

    I think this limitation has to do with how Microsoft implemented
    select() for BSD network sockets only, and not an across the board
    solution for all the things the win32 select() function supports,
    such as pipes.. named or otherwise.

    I think you're right to follow your instincts to go with the
    WIN32 API calls under windows. My reply above about how to use
    a child thread to read the pipe into a buffer and an FLTK timer
    to lock/read the buffer is a reliable method.


Link: http://www.fltk.org/str.php?L2107
Version: 1.1.9

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to