in reply to solution for fileevent on Win32 ???

See Non-blocking socket read on Windows. I "think" that fileevent will work on Win32, did you try it? The problem with fileevent on Win32, is that it won't work on pipe filehandles( you need the Win32::Pipe module). But it should works on sockets. IPC::Run(which uses sockets)is often suggested as an IPC substitute for IPC::Open3 (which uses pipes), for use on Win32.

Here is an example, see if it runs for you on Win32. Tk Realtime data aquisition


I'm not really a human, but I play one on earth CandyGram for Mongo
  • Comment on Re: solution for fileevent on Win32 ???

Replies are listed 'Best First'.
Re^2: solution for fileevent on Win32 ???
by cta (Acolyte) on Jul 11, 2008 at 14:12 UTC
    I tried using fileevent command and it didn't work on Win32 and you were right about the handle. Thanks.
    I'm still working on the timer event to see if I could get around the problem. And hmm having error while trying to open the socket.
        Thanks for all the suggestions.

        Your solution works just fine.
        But I think I'm going to adopt the POE framework for this project. I create one POE session to read an input and another one to integrate that input to my Tk Canvas.
        I cannot give more details because I'm still learning how to set up POE environment.
        But It seems to be a really promising way. You don't need to know in the low level how to corporate different tasks in the same time, POE takes care of that for you.

        Cheers,