Commit Graph

248 Commits (d934a9cbb188e17e2b3399b8e87210e46734e3b4)
 

Author SHA1 Message Date
Robert G. Jakabosky 1038af6d16 Added missing dependency. Fix thread latency perf benchmark. 15 years ago
Robert G. Jakabosky 418bbe024a Updated pre-generated module code. 15 years ago
Robert G. Jakabosky 3e67fa7243 Fixed luarocks build. 15 years ago
Robert G. Jakabosky bedc5c0c16 Fixed dependencies. 15 years ago
Robert G. Jakabosky 36a90d00d4 fix rockspec version. 15 years ago
Robert G. Jakabosky d90b00f237 Move low-level threads code into a different project lua-llthreads. 15 years ago
Robert G. Jakabosky 747c53357f Add thread-to-thread latency test example. 15 years ago
Robert G. Jakabosky 2f327f6e42 Fixed FFI loading bug. 15 years ago
Robert G. Jakabosky 5de9a8d46f Added support for running Lua code in child threads. 15 years ago
Robert G. Jakabosky 6126e4a0d6 Changed case for low-level poller object. 15 years ago
Robert G. Jakabosky 86f2d0c027 Update copyright notice. 15 years ago
Robert G. Jakabosky 7e5161865d Fixed rockspec. 15 years ago
Robert G. Jakabosky bd30398861 Added zmq.poller object that wraps zmq_poll() function. 15 years ago
Robert G. Jakabosky 62a0c8859a Fixed cmake build error. 15 years ago
Robert G. Jakabosky 56c4c465c8 Fixed bug with support for 0MQ version < 2.1 15 years ago
Robert G. Jakabosky 399258202d Fixed some issues with compiling bindings on Windows. 15 years ago
Robert G. Jakabosky d8839be4bd Regenerate bindings with better support for Windows vc2008 15 years ago
Robert G. Jakabosky 12f588a636 Fixed context initialization from FFI cdata value. 15 years ago
Robert G. Jakabosky 85f4412ea0 Add multipart benchmark/test code. 15 years ago
Robert G. Jakabosky a7133daefa Fixed bug with zmq_msg_t __tostring() metamethod. 15 years ago
Robert G. Jakabosky a524c4dc69 Add FFI support for setopt()/getopt() functions. 15 years ago
Robert G. Jakabosky 4cd5bd27cf Update link to 0MQ docs.
Add benchmarks that use send()/recv() instead of send_msg()/recv_msg()
interface.
15 years ago
Robert G. Jakabosky d17d257db5 Update installation instructions. 15 years ago
Robert G. Jakabosky 6b22b4c583 Added throughput benchmark results.
Improved installation instructions.
15 years ago
Robert G. Jakabosky 02c26ddc68 Removed error message when loading module in the standard Lua VM. 15 years ago
Robert G. Jakabosky 99b8dafb4a Remove debug message. 15 years ago
Robert G. Jakabosky 0757b21cba Regenerate bindings to remove some debug code. 15 years ago
Robert G. Jakabosky 4fecdbdd9e cleanup formatting in readme file. 15 years ago
Robert G. Jakabosky d0a71ccbae Add send_msg()/recv_msg() functions and zmq_msg_t object. Update FFI-based bindings to use latest LuaNativeObjects FFI support. 15 years ago
Robert G. Jakabosky ed462fe9b8 Updated bindings to use newest features of LuaNativeObjects. 15 years ago
Robert G. Jakabosky bd375e76c5 remove debug code. 15 years ago
Robert G. Jakabosky e61df55e51 Added support for creating a ZMQ context from LuaJIT cdata. 15 years ago
Robert G. Jakabosky bfa0085b7c Re-organize FFI files. 15 years ago
Robert G. Jakabosky 0ac861e107 Added support for creating a ZMQ context from a lightuserdata value. Move FFI code into a normal Lua file so we get nice syntax hightlighting. 15 years ago
Robert G. Jakabosky 3f11cbab83 Commit updated pre-generated bindings file. 15 years ago
Robert G. Jakabosky 84cd64b2ce Added support for __gc to call close() on ZMQ sockets. 15 years ago
Robert G. Jakabosky a79e7c9ceb Add instructions on how to run benchmarks. 15 years ago
Robert G. Jakabosky 4a05f9b8b0 changed home url. 15 years ago
Robert G. Jakabosky 42d4a1361b Added LuaJIT2 FFI support. 15 years ago
Robert G. Jakabosky 2270280153 Added zmq_device() function. 15 years ago
Robert G. Jakabosky 8a36da4e48 Ported zmq bindings to LuaNativeObjects bindings generator. 15 years ago
Robert G. Jakabosky 0c256e5815 Merge branch 'lua-zmq' 15 years ago
Robert G. Jakabosky 036012c57f Use millisecond resolution time function for measuring performance. 15 years ago
Aleksey Yeschenko 5578612efe Merge branch 'master' of https://github.com/dcreager/lua-zmq into dcreager-master 16 years ago
Robert G. Jakabosky 3d5b97b982 Added example of using an event-loop with ZeroMQ sockets. 16 years ago
Douglas Creager 1b1191a3be Extracting underlying C context object
You can now use the Context:lightuserdata() method to get a light
userdata pointer to the underlying ZeroMQ C context object.  On the
receiving end, the zmq.init() function can now take in a light
userdata object, which creates a new Context object wrapper for an
existing C context object.

The main use case for this is to provide an easy way to pass a ZeroMQ
context to another Lua interpreter.  The two interpreters (which
presumably would be running in separate threads) can then use ZeroMQ
sockets from this context to communicate with each other.

In this use case, we have to be sure not call zmq_term in the Context
__gc metamethod, since both Lua interpreters would try to do this.
Internally, we keep an additional boolean field that indicates whether
a Context object is responsible for terminating the context.  When
created with a light userdata, this will be false.  When created
normally, the default is true, but can be overridden.
16 years ago
Robert G. Jakabosky 67909a58de Removed un-needed zmq_return_error() macro. 16 years ago
Robert G. Jakabosky a1141bde7b Changed some of the error messages to match LuaSocket. 16 years ago
Robert G. Jakabosky 993659dd76 Added missing ZMQ_POLL* constants. 16 years ago
Robert G. Jakabosky 3a19588429 Added support for new ZeroMQ 2.1.0 socket options. 16 years ago