Robert G. Jakabosky
052d18ffb2
Fix convertion of Ctx from cdata to lightuserdata for passing to sub-threads.
15 years ago
Robert G. Jakabosky
c5fc85c9cd
Fix bug in poller.
15 years ago
Robert G. Jakabosky
23db47708b
Update FFI bindings to be more pure (i.e. less messing around with userdata tricks.)
15 years ago
Robert G. Jakabosky
74764609bf
Add missing FFI def. for zmq_errno.
15 years ago
Robert G. Jakabosky
09c13aa2fd
Use table to cache Error number to string conversion.
15 years ago
Robert G. Jakabosky
3758b825df
Update pre-generated binding code.
15 years ago
Robert G. Jakabosky
477fbecb99
Add missing DEALER/ROUTER socket types.
15 years ago
Robert G. Jakabosky
6c1661b9a0
Merge branch 'master' of github.com:Neopallium/lua-zmq
15 years ago
Douglas Creager
10bc8059f1
Return standardized error message for EINTR
...
The zmq functions now use "interrupted" instead of the system-specific
strerror() result for any EINTR errors. This makes it easy to test for
those and retry any interrupted function calls.
15 years ago
Robert G. Jakabosky
76c6770337
Cleanup ffi cdef.
15 years ago
Robert G. Jakabosky
c7e5f0c93f
Update pre-generated bindings code.
15 years ago
Robert G. Jakabosky
f7f294d942
Fix bug with null error thrown during GC of stopwatch timers.
15 years ago
Robert G. Jakabosky
3bcfd30ddb
Re-generate bindings file. Improved support for Windows+MinGW+MSYS.
15 years ago
Robert G. Jakabosky
ba5f08b586
Fix issue with some variables named 'this' which conflicts with the Intel C compiler.
15 years ago
Douglas Creager
9975bdfd2c
Add additional code to llthreads bootstrap
...
This patch lets you add additional code to the beginning of the
bootstrap function executed within each new llthread. This is needed,
for instance, if you've installed lua-zmq via luarocks; in this case,
you need to require "luarocks.loader" before you can require "zmq". So
you can do something like:
if package.loaded["luarocks.loader"] then
zmq.threads.set_bootstrap_prelude([[require "luarocks.loader"]])
end
15 years ago
Robert G. Jakabosky
ec8409ffeb
Use opaque struct types instead of 'void *'.
15 years ago
Robert G. Jakabosky
a49943157c
Add support for zmq_stopwatch_*() and zmq_sleep() functions.
15 years ago
Robert G. Jakabosky
82a834eca4
Use '__declspec(dllexport)' instead of LUALIB_API on WIN32.
15 years ago
Robert G. Jakabosky
10e68fb269
Fix incorrect use of global in FFI code. Locallize some globals from standard library in FFI code.
15 years ago
Robert G. Jakabosky
46ac27b3e5
Use 'nil' not 'false' for signalling errors.
15 years ago
Robert G. Jakabosky
ca22b64f2c
Fix issue with FFI bindings return 'nil' for error messages.
15 years ago
Robert G. Jakabosky
783e00ef7f
Fix use of 'NULL' instead of 'nil' in Lua code.
15 years ago
Robert G. Jakabosky
f13a4ef914
Remove use of 'disable_ffi' from FFI based bindings, since it can cause problems with strict environments.
15 years ago
Robert G. Jakabosky
7194be8851
Improve old version error message. Add note about requried zeromq version.
15 years ago
Robert G. Jakabosky
8439751b91
Add detection code for really old ZeroMQ 2.0.x series.
15 years ago
Robert G. Jakabosky
a3f912b8aa
Fix undefined socket_t with ZeroMQ 2.0.x
15 years ago
Robert G. Jakabosky
2df2e1eae3
Update pre-generated bindings.
15 years ago
Robert G. Jakabosky
5a875c12a1
Fixed bug with destroying & creating 0MQ sockets quickly.
15 years ago
Robert G. Jakabosky
b66901fe3c
Fixed issue with GC of 0MQ context object. poller:poll() method now returns number of events handled.
15 years ago
Robert G. Jakabosky
9689b108b5
Allow zmq context to be nil. Fixed passing of timeout value to poller.
15 years ago
Robert G. Jakabosky
eb96a2bc79
Fixed some bugs in low-level Poller object.
15 years ago
Robert G. Jakabosky
9108254961
Added FFI support to Poller object.
15 years ago
Robert G. Jakabosky
418bbe024a
Updated pre-generated module code.
15 years ago
Robert G. Jakabosky
d90b00f237
Move low-level threads code into a different project lua-llthreads.
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
bd30398861
Added zmq.poller object that wraps zmq_poll() function.
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
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
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
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
e61df55e51
Added support for creating a ZMQ context from LuaJIT cdata.
15 years ago