in reply to Using AnyEvent
I'm not an expert on AnyEvent, or exactly what $cv->recv is supposed to be reading, but in general, you use sysread in an select loop to avoid blocking. Look at AnyEvent::Handle for example. It uses sysread but it hides it in the module. Also see AnyEvent for I/O events for a good example.
It would help if you posted a working code example.
|
|---|