in reply to I search for an async IPC module that transfers arbitrary-length strings (preferably binary, but ASCII is fine too) via full-duplex, keep-alive TCP connection

Have you looked at using HTTP as your transfer/dispatch protocol? Using AnyEvent and Plack (Twiggy), you get the asynchronous transfer, and a fairly tested set of semantics for sending data and sending responses.

Of course, you do not get immediate type safety and implicit dispatch as you get with XMLRPC or SOAP.

An alternative could be to use/implement something like JSONRPC, which likely will dispatch the code immediately to an object of your choice.

  • Comment on Re: I search for an async IPC module that transfers arbitrary-length strings (preferably binary, but ASCII is fine too) via full-duplex, keep-alive TCP connection

Replies are listed 'Best First'.
Re^2: I search for an async IPC module that transfers arbitrary-length strings (preferably binary, but ASCII is fine too) via full-duplex, keep-alive TCP connection
by anykeyman (Novice) on May 27, 2013 at 20:27 UTC

    I really don't know what is PSGI so I will learn about it tomorrow. Thanks for that suggestion.

    I readed CPAN docs for XMLRPC, JSONRPC, and I'm not sure that they have events I need and full-duplex keep-alive connection. Do them?

    My problem is, I will have 50 or like that sockets at a time, server will receive and send some serialized data over them. And to keep my code simple, I need to present continuous chunks of my data as strings, and have events fired when connection established and when connection closed. And of course I need event for each received string.

    Can XMLRPC, JSONRPC or SOAP be adapted for that task?