Rockspec for lzmq version 0.1.1 attached.
Lua binding to ZeroMQ 3 library.
+ socket.recv_len method return first N bytes from message
+ message.set_size resize zmq_msg_t object (create/copy)
+ message.pointer return pointer to zmq_msg_data as lightuserdata
+ tests use lunit
-------------
package = "lzmq"
version = "0.1.1-1"
source = {
url = "https://github.com/moteus/lzmq/archive/v0.1.1.zip",
dir = "lzmq-0.1.1",
}
description = {
summary = "Lua binding to ZeroMQ 3",
homepage = "https://github.com/moteus/lzmq",
license = "MIT/X11",
}
dependencies = {
"lua >= 5.1",
-- "lua-llthreads >= 1.2"
}
external_dependencies = {
ZMQ3 = {
header = "zmq.h",
library = "libzmq3",
}
}
build = {
copy_directories = {"test", "examples"},
type = "builtin",
platforms = {
windows = { modules = {
["lzmq.timer"] = {
defines = {'USE_PERF_COUNT'}
},
}},
unix = { modules = {
["lzmq.timer"] = {
defines = {'USE_CLOCK_MONOTONIC', 'USE_GETTIMEOFDAY'},
}
}}
},
modules = {
["lzmq"] = {
sources = {'src/lzmq.c','src/lzutils.c','src/poller.c',
'src/zcontext.c','src/zerror.c','src/zmsg.c',
'src/zpoller.c','src/zsocket.c'},
libraries = {"libzmq3"},
incdirs = {"$(ZMQ3_INCDIR)"},
libdirs = {"$(ZMQ3_LIBDIR)"},
defines = {
'LUAZMQ_USE_SEND_AS_BUF',
'LUAZMQ_USE_TEMP_BUFFERS',
'LUAZMQ_USE_ERR_TYPE_OBJECT',
-- 'LUAZMQ_USE_ERR_TYPE_NUMBER'
-- 'LUAZMQ_USE_ERR_TYPE_STRING'
},
},
["lzmq.timer"] = {
sources = {'src/ztimer.c','src/lzutils.c'},
},
["lzmq.loop" ] = "lua/lzmq/loop.lua";
["lzmq.poller" ] = "lua/lzmq/poller.lua";
["lzmq.threads"] = "lua/lzmq/threads.lua";
},
}
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers