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/server.lua

10 lines
209 B
Lua

require("zmq")
local ctx = zmq.init(1, 1)
local s = zmq.socket(ctx, zmq.REP)
zmq.bind(s, "tcp://lo:5555")
while true do
print(string.format("Received query: '%s'", zmq.recv(s)))
zmq.send(s, "OK")
end