in reply to Re: solution for fileevent on Win32 ???
in thread solution for fileevent on Win32 ???

thanks for your promptly responses.
I did try to use the timer event but I don't see which method you can use to send data through the socket at the sender part.

When you call the can_read method, can you get the event data or just the boolean value saying if there is any available data at the socket?
  • Comment on Re^2: solution for fileevent on Win32 ???

Replies are listed 'Best First'.
Re^3: solution for fileevent on Win32 ???
by pc88mxer (Vicar) on Jul 10, 2008 at 20:15 UTC
    A socket is just a file handle, so you can use syswrite or print.

    can_read (from IO::Select) only returns true or false. It is telling you that you will not block if you try to read from the file handle. You have to call read or sysread to get the data.