开发者

how do i set socket options in nodejs for zeromq

in other languages its socket.setsockopt but that doesn't seem to work for https://github.com/JustinTulloss/zeromq.node a开发者_高级运维nyone have any experience with this?


It looks like that library exposes the options as getters and setters. So to print the sendBufferSize you should be able to 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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜