Context.maxSockets

The maximum number of sockets.

  1. int maxSockets [@property getter]
  2. int maxSockets [@property setter]
    struct Context
    @safe @property
    void
    maxSockets
    (
    int value
    )

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_ctx_get()) and $(ZMQREF zmq_ctx_set()) with ZMQ_MAX_SOCKETS.

Examples

auto ctx = Context();
ctx.maxSockets = 512;
assert (ctx.maxSockets == 512);

Meta