Skip to content

zhangshiqian1214/lua-zmq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-zmq

lua-zmq is a simple(not full-complete) Lua binding of ZeroMQ 4.x, not production ready!

Installation

First obtain CMake and conan.

Linux

Type make build in a Linux or WSL shell

Windows

  • pip install conan
  • mkdir build && cd build && conan install ..

Usage at a glance

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

See more exampes and API doc

About

Lua 5.3 binding of ZeroMQ 4.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.7%
  • Lua 10.7%
  • CMake 1.6%
  • Makefile 1.0%