Robert G. Jakabosky
837eae2da6
Fix version checks.
15 years ago
Robert G. Jakabosky
56f51fd22c
Generate methods to get/set socket options.
15 years ago
Robert G. Jakabosky
29ac928f78
Add partial work on generating socket option code.
15 years ago
Robert G. Jakabosky
b1157e3aaa
Add support for zmq 3.0/3.1
15 years ago
Robert G. Jakabosky
ffeb63cf7d
Don't pollute global _G space.
15 years ago
Robert G. Jakabosky
c3dd0056e1
Simplify zmq_msg_t/ZMQ_Poller constructors.
15 years ago
Robert G. Jakabosky
67993e7953
Remove loading of libzmq.so/libzmq.dll for FFI bindings, since the symbols are accessible from zmq.so which we where loading.
15 years ago
Robert G. Jakabosky
26200cf9c0
Add custom c module loading code for luvit.
15 years ago
Robert G. Jakabosky
95367457f7
Remove some dead FFI code. Remove use of bit & debug modules.
15 years ago
Robert G. Jakabosky
96ec0ff278
Update FFI bindings.
15 years ago
Robert G. Jakabosky
c2dcd09181
Fix convertion of Ctx from cdata to lightuserdata for passing to sub-threads.
15 years ago
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