lua-zmq is a simple(not full-complete) Lua binding of ZeroMQ 4.x, not production ready!
Type make build
in a Linux or WSL shell
- pip install conan
- mkdir build && cd build && conan install ..
local zmq = require 'luazmq'
zmq.init()
local c = zmq.socket(zmq.REQ)
c.setIdentity('node002')
while true do
c.send('hello')
local rep = c.recv()
print(rep)
end
zmq.shutdown()
zmq.terminate()