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/examples/publiser.lua

11 lines
203 B
Lua

require("zmq")
local ctx = zmq.init(1, 1, 0)
local s = zmq.socket(ctx, zmq.PUB)
zmq.bind(s, "tcp://lo:5555")
local msg_id = 1
while true do
zmq.send(s, tostring(msg_id))
msg_id = msg_id + 1
end