0.1.1 • Published 10 years ago

rainfall-udp v0.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
10 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

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago