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.
|
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)
|