zmq — PyZMQ 22.3.0 documentation
pyzmq.readthedocs.io › en › latestclass zmq. Context (io_threads: int = 1, ** kwargs) ¶ Create a zmq Context. A zmq Context creates sockets via its ctx.socket method. closed ¶ boolean - whether the context has been terminated. If True, you can no longer use this Context. destroy (linger: Optional [float] = None) ¶ Close all sockets associated with this context and then ...
zmq — PyZMQ 22.3.0 documentation
https://pyzmq.readthedocs.io/en/latest/api/zmq.htmlsocket (socket_type: int, ** kwargs) ¶. Create a Socket associated with this Context. Parameters. socket_type – The socket type, which can be any of the 0MQ socket types: REQ, REP, PUB, SUB, PAIR, DEALER, ROUTER, PULL, PUSH, etc.. kwargs – will be passed to the __init__ method of the socket class.. term → None ¶. Close or terminate the context. Context termination is …