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

10 lines
200 B
Lua

require("zmq")
local ctx = zmq.init(1, 1)
local s = zmq.socket(ctx, zmq.REQ)
zmq.connect(s, "tcp://localhost:5555")
zmq.send(s, "SELECT * FROM mytable")
print(zmq.recv(s))
zmq.close(s)
zmq.term(ctx)