On Fri, Aug 29, 2014 at 4:33 AM, Chris Knipe <[email protected]> wrote:
> It's times like this that I *really* wish I knew how to code in C - no > offence to anyone, again. Even in .NET doing something like this is > almost trivial by using separate event handlers for receiving data > from the socket - again which is why I firmly believed that something > like this could have been done via POE (yes, this would be handled via > threads - but it's done and managed by the .NET modules, and thus > require -very- little code, or understanding for that matter, from the > programmer's point of view). > It sounds like you want an event loop that triggers on socket activity. Would something like AnyEvent::Socket <http://search.cpan.org/~mlehmann/AnyEvent-7.07/lib/AnyEvent/Socket.pm> work for you? I came across it by googling "perl socket event handler". -- Robert Wohlfarth
