You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-zmq/API.md

1.3 KiB

constants

ZMQ_CONSTANT_NAME in the C API turns into zmq.CONSTANT_NAME in Lua.

init

Initialises ØMQ context. See zmq_init(3).

zmq.init(app_threads, io_threads)
zmq.init(app_threads, io_threads, flags)

term

Terminates ØMQ context. See zmq_term(3).

ctx:term()

socket

Creates ØMQ socket. See zmq_socket(3).

ctx:socket(type)

close

Destroys ØMQ socket. See zmq_close(3).

s:close()

setsockopt

Sets a specified option on a ØMQ socket. See zmq_setsockopt(3).

s:setsockopt(option, optval)

bind

Binds the socket to the specified address. See zmq_bind(3).

s:bind(addr)

connect

Connect the socket to the specified address. See zmq_connect(3).

s:connect(addr)

send

Sends a message. See zmq_send(3).

s:send(msg)
s:send(msg, flags)

flush

Flushes unflushed messages to the socket. See zmq_flush(3).

s:flush()

recv

Retrieves a message from the socket. See zmq_recv(3).

s:recv()
s:recv(flags)