ZMQ_CTX_SHUTDOWN(3)
ZMQ_CTX_SHUTDOWN π
okay bestie, so this is the 0MQ Manual page for zmq_ctx_shutdown β yes it's a C function in the ZeroMQ library, and yes it's lowkey iconic. sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
zmq_ctx_shutdown β shutdown a 0MQ context
π SYNOPSIS π
int zmq_ctx_shutdown (void *context);
π DESCRIPTION π
so the zmq_ctx_shutdown() function shall shutdown the 0MQ context context. that's it, that's the whole vibe. β¨
context shutdown will cause any blocking operations currently in progress on sockets open within context to return immediately with an error code of ETERM. like, no waiting around, no "give me one more sec", just instant. π
with the exception of zmq_close(), any further operations on sockets open within context shall fail with an error code of ETERM. and listen β no further sockets can be created using zmq_socket() on a context for which zmq_ctx_shutdown() has been called. it will return and set errno to ETERM. so like... the door is closed, babe. πͺ
also important bestie: this function is optional. client code is still required to call the zmq_ctx_term(3) function to free all resources allocated by zeromq. shutting down β cleaning up. don't skip the cleanup, that's not the move. π§Ή
πΈ RETURN VALUE πΈ
- the
zmq_ctx_shutdown()function shall return zero if successful π - otherwise it shall return
-1and seterrnoto one of the values defined below π
π¦ ERRORS π¦
EFAULTβ the provided context was invalid. bestie... that's not a real context. π
β SEE ALSO β
π 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. they're literally so giving π«Ά
okay that's the whole page, no cap. this was 0MQ 4.3.5, dated 10/09/2023 β periodt, go free your resources ππ
π¦ 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