ZMQ_HAS(3)
β¨ ZMQ_HAS(3) β¨
okay bestie, welcome to the 0MQ Manual β this is the page for zmq_has, and it's literally so cute and useful, you're gonna be obsessed. π«Ά
πΈ NAME πΈ
zmq_has β check a ZMQ capability π
π SYNOPSIS π
int zmq_has (const char *capability);
π¦ DESCRIPTION π¦
so the zmq_has() function shall report whether a specified capability is available in the library. that's it, that's the whole vibe. it lets bindings and applications probe a library directly, for transport and security options. no cap, it's giving "let me check before I commit" energy and honestly? iconic. β¨
capabilities shall be lowercase strings β lowercase only, bestie, don't be yelling at it. π the following capabilities are defined:
ipcβ the library supports theipc://protocol πpgmβ the library supports thepgm://protocol πtipcβ the library supports thetipc://protocol πnormβ the library supports thenorm://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 π§
and here's the lil detail that matters: when this method is provided, the zmq.h header file will define ZMQ_HAS_CAPABILITIES. so if you see that macro, you know zmq_has is in the building. π
β RETURN VALUE β
- the
zmq_has()function shall return1if the specified capability is provided. slay. β - otherwise it shall return
0. π
that's it. 1 or 0. binary queen behavior, periodt. π
π 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.
bestie reminder: capabilities are lowercase strings and the return is strictly1(provided) or0(not provided). don't overthink it, just vibe check the library. πΈ
okay that's the whole page, love u, go probe some capabilities πβ¨ β this was the 0MQ manual for ZMQ_HAS(3), source 0MQ 4.3.5, dated 10/09/2023, and that's the sign-off, mwah ππ¦π
π¦ where this page comes from
- epel 10: zeromq 4.3.5-18.el10_0 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 43: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- fedora 44: zeromq 4.3.5-22.fc43 Β· MPL-2.0 AND BSD-3-Clause AND MIT
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- opensuse-leap 16.0: zeromq-devel 4.3.5-160000.2.2 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms