erlang-czmq icon indicating copy to clipboard operation
erlang-czmq copied to clipboard

Is there any way to receive messages as Erlang messages instead of doing recv manually?

Open iamd3vil opened this issue 8 years ago • 1 comments

Hi, Is there any way to receive messages as Erlang messages instead of calling czmq:zframe_recv_all/1 manually, just like an active TCP socket?

iamd3vil avatar Jun 07 '16 08:06 iamd3vil

There is not - this is a polling scheme as it is over a port. However, it's easy to poll in a loop, which will wait on messages from the port - and then send them to a consumer.

On Tue, Jun 7, 2016 at 3:46 AM, Sarat Chandra [email protected] wrote:

Hi, Is there any way to receive messages as Erlang messages instead of calling czmq:zframe_recv_all/1 manually, just like an active TCP socket?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gar1t/erlang-czmq/issues/39, or mute the thread https://github.com/notifications/unsubscribe/AALSdaJXaYykAgrmnsBvzbCYZlUiJs_Gks5qJS_ogaJpZM4IvsTv .

gar1t avatar Jun 07 '16 13:06 gar1t