index.js
function EndPoint (local) {
  this.listeners = 0;
  this.dgram = dgram.createSocket('udp4');
  this.dgram.on('message', EndPoint.prototype.receive.bind(this));
  this.dgram.bind(local.port, local.address);
  this.local = this.dgram.address();
  this.packet = new Buffer(2048);
  this.sockets = {};
}
function EndPoint (local) {
  this.listeners = 0;
  this.dgram = dgram.createSocket('udp4');
  this.dgram.on('message', EndPoint.prototype.receive.bind(this));
  this.dgram.bind(local.port, local.address);
  this.local = this.dgram.address();
  this.packet = new Buffer(2048);
  this.sockets = {};
}
function EndPoint ( local ) { this . listeners = 0 ; this . dgram = dgram . createSocket ( 'udp4' ) ; this . dgram . on ( 'message' , EndPoint . prototype . receive . bind ( this ) ) ; this . dgram . bind ( local . port , local . address ) ; this . local = this . dgram . address ( ) ; this . packet = new Buffer ( 2048 ) ; this . sockets = { } ; }
Wrapper around an underlying UDP datagram socket.
Wrapper around an underlying UDP datagram socket .