Live texturing

This commit is contained in:
maqu14
2016-03-18 10:14:02 +01:00
parent 65e5729118
commit 7fc83d1471
155 changed files with 18378 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
var zmq = require('../../')
, sock = zmq.socket('push');
sock.bindSync('tcp://127.0.0.1:3000');
console.log('Producer bound to port 3000');
setInterval(function(){
console.log('sending work');
sock.send('some work');
}, 500);
+10
View File
@@ -0,0 +1,10 @@
var zmq = require('../../')
, sock = zmq.socket('pull');
sock.connect('tcp://127.0.0.1:3000');
console.log('Worker connected to port 3000');
sock.on('message', function(msg){
console.log('work: %s', msg.toString());
});