This package has been deprecated

Author message:

Crufty old Junk. DO NOT USE IT'S IN CORE NOW

mdgram

0.0.3 • Public • Published

NodeJS UDP-Multicast

Multicast UDP Sockets for NodeJS

Installation

$ cd ~/.node_libraries
$	git clone http://github.com/phidelta/NodeJS-UDP-Multicast.git mdgram
$ cd mdgram
$ node-waf configure build
$ ln -s ./build/default/bindings.node bindings.node

OR

$ git clone http://github.com/phidelta/NodeJS-UDP-Multicast.git mdgram
$ cd mdgram
$ npm install

OR SIMPLY

$ npm install mdgram

Synopsis

Create a Listening Socket:

var mdgram=require('mdgram');
var socket=mdgram.createSocket('udp4');
socket.bind(1234);
socket.joinGroup("225.0.0.73");

Setting the Multicast TimeToLive:

socket.setMulticastTTL(5);

Setting the Multicast Interface:

socket.setMulticastInterface("192.168.0.3"); // Where 192.168.0.3 is the IP of the interface you want to use Multicast on
socket.setMulticastInterface(); // If you want the system to figure out which to use (commonly the first non-loopback interface)

Leaving a Multicast Group:

socket.leaveGroup("225.0.0.73");

Authors

Philipp Dunkel (phidelta at phideltacity.net)

License

MIT license. See license text in file LICENSE.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mdgram

      Weekly Downloads

      0

      Version

      0.0.3

      License

      none

      Last publish

      Collaborators

      • pipobscure