Another possible improvement would be to ditch Thread::Queue in favour of a Win32::Socketpair "pipe".
I'd be very reluctant to give up what I know works in favour of something, that despite my recognising it's promise, I've yet to get to grips with. Have you tried Win32::Socketpair yet?
From my view it just adds complications. You still need a thread to handle STDIN, but now you have the problem of passing socket handles around? How would you construct the above snippet?
In reply to Re^5: How to Multiplex a Client using IO::Select
by BrowserUk
in thread How to Multiplex a Client using IO::Select
by muthuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |