Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
datagram-stream
Advanced tools
A streaming UDP module with broadcast, multicast and unicast options.
npm install datagram-stream
var udp = require('datagram-stream');
var stream = udp({
address : '0.0.0.0' //address to bind to
, multicast : '239.5.5.5' //multicast ip address to send to and listen on
, port : 5555 //udp port to send to
, bindingPort : 5556 //udp port to listen on. Default: port
, reuseAddr : true //boolean: allow multiple processes to bind to the
// same address and port. Default: true
, loopback : true //boolean: whether or not to receive sent datagrams
// on the loopback device. Only applies to
// multicast. Default: false
});
//pipe whatever is received to stdout
stream.pipe(process.stdout);
//pipe whatever is received on stdin over udp
process.stdin.pipe(stream);
var udp = require('datagram-stream');
var stream = udp({
address : '0.0.0.0' //address to bind to
, broadcast : '255.255.255.255' //broadcast ip address to send to
, port : 5555 //udp port to send to
, bindingPort : 5556 //udp port to listen on. Default: port
, reuseAddr : true //boolean: allow multiple processes to bind to the
// same address and port. Default: true
});
//pipe whatever is received to stdout
stream.pipe(process.stdout);
//pipe whatever is received on stdin over udp
process.stdin.pipe(stream);
var udp = require('datagram-stream');
var stream = udp({
address : '0.0.0.0' //address to bind to
, unicast : '127.0.0.1' //unicast ip address to send to
, port : 5555 //udp port to send to
, bindingPort : 5556 //udp port to listen on. Default: port
, reuseAddr : true //boolean: allow multiple processes to bind to the
// same address and port. Default: true
});
//pipe whatever is received to stdout
stream.pipe(process.stdout);
//pipe whatever is received on stdin over udp
process.stdin.pipe(stream);
I used @dominictarr's broadcast-stream as a guide for how to implement the stream.
MIT
FAQs
Streaming UDP with broadcast, multicast and unicast options
The npm package datagram-stream receives a total of 2,655 weekly downloads. As such, datagram-stream popularity was classified as popular.
We found that datagram-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.