in reply to Re: Multiplexing problem
in thread Multiplexing problem

It would be simpler to sockify STDIN. Create a socket pair, and have a thread dump STDIN into one end of the pair. The other end is used in lieu of STDIN in the main thread.

Replies are listed 'Best First'.
Re^3: Multiplexing problem
by Anonymous Monk on Feb 09, 2010 at 10:26 UTC
    how can i do that?
        can you show sample code?
Re^3: Multiplexing problem
by Anonymous Monk on Feb 10, 2010 at 11:58 UTC
    How can he use pipes to his advance?
      He can't if he wants to use select. The problem is that he is currently using a pipe (or whatever type of handle STDIN is). He needs to use a socket instead of a pipe because they're not selectable in Windows.