0.1.1 • Published 8 years ago

rainfall-udp v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

#UDP Driver This is the driver implementation of the UDP driver for the Rainfall library. Besides the createDriver method, you won't need to call any other method.

##Usage You'll use this driver to pass it to the Rainfall library or the Leaf library.

###Examples

Creates a driver on port 4567 and uses default broadcast port (2356)

var Udp = require('rainfall-udp');
Udp.createDriver({rport: 4567}, (err, inst) => {
  //inst is the created driver, pass it to Rainfall or leaf
});

Creates a driver on port 4567 and setting broadcast port to 4567

var Udp = require('rainfall-udp');
Udp.createDriver({rport: 4567, broadcast_port: 4567}, (err, inst) => {
  //inst is the created driver, pass it to Rainfall or leaf
});

Creates a driver on arbitrary port and uses default broadcast port (2356)

var Udp = require('rainfall-udp');
Udp.createDriver({}, (err, inst) => {
  //inst is the created driver, pass it to Rainfall or leaf
});

##Documentation For documentation on how to use this driver, refer to this

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago