eval, ualarm and IO::Socket
I just wanted to ask if somebody has implementet an "nonblocking" socket reader,
which uses Time::HiRes ualarm() function (or nativ perls alarm function) tobreak the "waiting on data in socket (if the socket has no data)"
after a view microsecond... (in eval block) then do something else, like looking for signals etc... and then start listening on the socket again.
(Or is this a stupid idea anyway?)
I ask, because i don´t want to implement a real nonblocking io::socketreader, because this is very though and when reading nonblocking I can´t handle incoming signales fast enough.
(Somehow POE came to my mind... maybe there is something better (like wheel:socket or something like that...) )