1.5 KiB
constants
ZMQ_CONSTANT_NAME in the C API corresponds to zmq.CONSTANT_NAME in Lua.
zmq.init
Initialises ØMQ context. See zmq_init(3).
zmq.init(app_threads, io_threads) zmq.init(app_threads, io_threads, flags)
zmq.term
Terminates ØMQ context. See zmq_term(3).
zmq.term(context)
zmq.socket
Creates ØMQ socket. See zmq_socket(3).
zmq.socket(context, type)
zmq.close
Destroys ØMQ socket. See zmq_close(3).
zmq.close(socket)
zmq.setsockopt
Sets a specified option on a ØMQ socket. See zmq_setsockopt(3).
zmq.setsockopt(socket, option, optval)
zmq.bind
Binds the socket to the specified address. See zmq_bind(3).
zmq.bind(socket, addr)
zmq.connect
Connect the socket to the specified address. See zmq_connect(3).
zmq.connect(socket, addr)
zmq.send
Sends a message. See zmq_send(3).
zmq.send(socket, msg) zmq.send(socket, msg, flags)
zmq.flush
Flushes unflushed messages to the socket. See zmq_flush(3).
zmq.flush(socket)
zmq.recv
Retrieves a message from the socket. See zmq_recv(3).
zmq.recv(socket) zmq.recv(socket, flags)