zmq_has(3)

zmq_has3

Check a zmq capability

Usage

int zmq_has (const char *capability);

Overview

The zmq_has() function shall report whether a specified capability is available in the library. This allows bindings and applications to probe a library directly, for transport and security options.

Capabilities shall be lowercase strings. The following capabilities are defined:

• ipc - the library supports the ipc:// protocol

• pgm - the library supports the pgm:// protocol

• tipc - the library supports the tipc:// protocol

• norm - the library supports the norm:// protocol

• curve - the library supports the CURVE security mechanism

• gssapi - the library supports the GSSAPI security mechanism

• draft - the library is built with the draft api

When this method is provided, the zmq.h header file will define ZMQ_HAS_CAPABILITIES.

Return value

The zmq_has() function shall return 1 if the specified capability is provided. Otherwise it shall return 0.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Authors

This page was written by the 0MQ community. To make a change please read the 0MQ Contribution Policy at http://www.zeromq.org/docs:contributing.

From zeromq 4.3.5-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.