zmq_has.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. zmq_has(3)
  2. ==========
  3. NAME
  4. ----
  5. zmq_has - check a ZMQ capability
  6. SYNOPSIS
  7. --------
  8. *int zmq_has (const char *capability);*
  9. DESCRIPTION
  10. -----------
  11. The _zmq_has()_ function shall report whether a specified capability is
  12. available in the library. This allows bindings and applications to probe
  13. a library directly, for transport and security options.
  14. Capabilities shall be lowercase strings. The following capabilities are
  15. defined:
  16. * ipc - the library supports the ipc:// protocol
  17. * pgm - the library supports the pgm:// protocol
  18. * tipc - the library supports the tipc:// protocol
  19. * norm - the library supports the norm:// protocol
  20. * curve - the library supports the CURVE security mechanism
  21. * gssapi - the library supports the GSSAPI security mechanism
  22. * draft - the library is built with the draft api
  23. When this method is provided, the zmq.h header file will define
  24. ZMQ_HAS_CAPABILITIES.
  25. RETURN VALUE
  26. ------------
  27. The _zmq_has()_ function shall return 1 if the specified capability is
  28. provided. Otherwise it shall return 0.
  29. AUTHORS
  30. -------
  31. This page was written by the 0MQ community. To make a change please
  32. read the 0MQ Contribution Policy at <http://www.zeromq.org/docs:contributing>.