How to set socket options in nodejs for zeromq

in other languages ​​its socket.setsockopt, but this does not work for https://github.com/JustinTulloss/zeromq.node does anyone have experience with this?

+3
source share
1 answer

This library seems to provide options as getters and setters. Therefore, to print sendBufferSize, you must do the following.

Check out the code around line 80 https://github.com/JustinTulloss/zeromq.node/blob/master/zeromq.js

var sys = require("sys");
var zmq = require('zeromq');

s = zmq.createSocket('req');
console.log(s.sendBufferSize);
+4
source

All Articles