Commit Graph

136 Commits (3bcfd30ddb96aec5c3e3e1e13cf10c13555b1f66)
 

Author SHA1 Message Date
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
Aleksey Yeschenko 5158c5fe44 Removed binary rockspec 16 years ago
Joshua Simmons 1b4b338cc8 Merge branch 'master' of http://github.com/iamaleksey/lua-zmq 16 years ago
Joshua Simmons 03a21804bb Giving lua-zmq new API semantics.
Functions now return nil followed by an error message on failure.
They also fail properly in all cases, this removes asserts from
the code base.
16 years ago
Norman Clarke d5dfd070d8 Added URL and md5 of archive. 16 years ago
Norman Clarke e5b0619206 Added rockspecs. 16 years ago
Joshua Simmons 7e017afdbf Removing deprecated UPSTREAM/DOWNSTREAM symbols
Now 2.0.8 has been released, I don't see any real need to keep them
there.

Revert "Adding support for zmq 2.0.7 with a hacky preprocessor check"

This reverts commit 9d38da847d.
16 years ago
Joshua Simmons 8b961acd05 Removing deprecated UPSTREAM/DOWNSTREAM symbols
Now 2.0.8 has been released, I don't see any real need to keep them
there.

Revert "Adding support for zmq 2.0.7 with a hacky preprocessor check"

This reverts commit 9d38da847d.
16 years ago
Joshua Simmons fef7a7c686 Merge remote branch 'origin/master' 16 years ago
Joshua Simmons 08c18e851c Work on object collection
Adding __gc for socket objecs
Adding NULL pointer check to context:term and socket:close
16 years ago
Joshua Simmons c47515af0f Adding __gc metamethod to context 16 years ago
Joshua Simmons dd2f0df539 Adding gitignore for binaries 16 years ago
Joshua Simmons 9d38da847d Adding support for zmq 2.0.7 with a hacky preprocessor check 16 years ago