开发者

how do i set socket options in nodejs for zeromq

开发者 https://www.devze.com 2023-02-19 05:08 出处:网络
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

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

精彩评论

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