lib/pollers/udp/udpPoller.js
function() {
  var udpServer = dgram.createSocket('udp4');
  // binding required for getting responses
  udpServer.bind();
  udpServer.on('error', function () {});
  getUdpServer = function() {
    return udpServer;
  };
  return getUdpServer();
}
function() {
  var udpServer = dgram.createSocket('udp4');
  // binding required for getting responses
  udpServer.bind();
  udpServer.on('error', function () {});
  getUdpServer = function() {
    return udpServer;
  };
  return getUdpServer();
}
function ( ) { var udpServer = dgram . createSocket ( 'udp4' ) ; // binding required for getting responses udpServer . bind ( ) ; udpServer . on ( 'error' , function ( ) { } ) ; getUdpServer = function ( ) { return udpServer ; } ; return getUdpServer ( ) ; }
UdpServer Singleton, using self-redefining function
UdpServer Singleton using self - redefining function