Description

A higher level, idiomatic zmq wrapper for the D language.

Package Information

Version0.3.0 (2014-Aug-17)
Repositoryhttps://github.com/iccodegr/zmq.d
LicenseLGPL v3
CopyrightCopyright © 2014, Tasos Vogiatzoglou
AuthorsTasos Vogiatzlgou
Registered byTasos Vogiatzoglou
Dependencies

zeromq

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

zmq.d

A higher level, idiomatic zmq wrapper for the D language.

Features

  • wrappers for common zmq methods
  • resource management and destruction
  • policy based concurrency support
  • vibe.d support ( integration with vibe.d event loop )

/// default concurrency - as is, blocking
import dzmq;
auto ctx = new ZmqContext();
auto sock = ctx.socket!(ZmqSocketType.Req)();
sock.connect("tcp://localhost:1234")
/// vibe.d concurrency - fibers ,yields execution while waiting
import dzmq;
import dzmq.concurrency_mixins;

auto ctx = new ZmqContext();
auto sock = ctx.socket!(ZmqSocketType.Req, VibeDConcurrencyPolicy)();
sock.connect("tcp://localhost:1234");

TBD

  • Callbacks on messages
  • Threading support

Available versions

0.3.0 ~master ~develop