A version of zeromq-node bindings compiled for 32bit windows node.exe. Requires the bundled libzmq.dll next to node.exe.
C++ JavaScript
Switch branches/tags
Nothing to show
Latest commit e0e3626 Jul 27, 2012 @matthiasg Merge pull request #2 from GulinSS/master
Now it support nod 0.8 only
Permalink
Failed to load latest commit information.
compiled
deps
examples/workers
lib
node_modules
src
test
.gitignore
README.md
binding.gyp
example-gyp.txt
index.js
libzmq.dll
package.json
test-all.cmd

README.md

zmq-windows

I needed a version of zmq 2.* bindings that would work under windows and found some projects (JustinTulloss/zeromq.node and the windows branch of mojodna/zeromq.node) that were almost there. In combination with node-gyp and bindings i seem to have gotten it working. It is far from perfect and mostly untested, though the tests work and i get about ~15000 messages/s on my machine, single threaded, push/pull via tcp.

Usage

The api is identical to the zeromq.node driver.

Compilation

If you want to compile the project, check it out and install node-gyp. Note: use node-gyp 0.3.5

  • npm install -g node-gyp
  • node-gyp configure
  • node-gyp build

which will build a release file and place it under build\Release. This is the file used by default by the tests and example.

If you want to require the package you have to copy the zeromq.node file from build\Release to compiled\0.6\win32\ia32 as described by bindings.

Changes

bindings.cc

  • I rewrote the Socket::UV_CheckFDState to use a timer and thus change the rest accordingly It uses a millisecond timer to check the socket state for new infos, dispatches it as before but before returning to the timer it repeats the check if more data has already queued up and dispatches that. If the poll does not return any data i simply return into the event loop. So the initial latency should be 1ms, with more messages being faster if they batch up.

  • I changed the binding name from 'binding' to 'zeromq'. In the bindings.cc.

bindings.gyp

A small, windows only gyp file.