A class for exceptions thrown when any of the underlying $(ZMQ) C functions report an error.
The various socket types.
Utility function which interprets and validates a byte array as a UTF-8 string.
A global context which is used by default by all sockets, unless they are explicitly constructed with a different context.
Starts the built-in $(ZMQ) proxy.
Reports the $(ZMQ) library version.
An object that encapsulates a $(ZMQ) context.
An object that encapsulates a $(ZMQ) message.
An object that encapsulates a $(ZMQ) socket.
0.1 ( ∅MQ 3.2 compatible)
Copyright (c) 2013, Lars T. Kyllingstad. All rights reserved.
$(ZMQ)D
is released under a BSD licence (see LICENCE.txt for details).
Please refer to the ∅MQ
site
for details about ∅MQ
licensing.
A thin wrapper around the low-level C API of the ∅MQ messaging framework, for the D programming language.
Most functions in this module have a one-to-one relationship with functions in the underlying C API. Some adaptations have been made to make the API safer, easier and more pleasant to use, namely:
The names of functions and types in $(ZMQ)D are very similar to those in ∅MQ , but they follow the D naming conventions. For example, zmq_msg_send() becomes zmqd.Message.send() and so on. Thus, the library should feel both familiar to ∅MQ users and natural to D users.
Due to the close correspondence with the C API, this documentation has intentionally been kept sparse. There is really no reason to repeat the contents of the $(LINK2 http://api.zeromq.org/3-2:__start,∅MQ reference manual) here. Instead, the documentation for each function contains a "Corresponds to" section that links to the appropriate page in the ∅MQ reference. Any details given in the present documentation mostly concern the D-specific adaptations that have been made.
Also note that the examples only use the INPROC and IPC transports. The reason for this is that the examples double as unittests, and we want to avoid firewall troubles and other issues that could arise with the use of network protocols such as TCP, PGM, etc. Anyway, they are only short snippets that demonstrate the syntax; for more comprehensive and realistic examples, please refer to the ∅MQ Guide.