index.js
function receive(msg, rinfo){
    var packet = lob.decloak(msg);
    if(!packet) packet = lob.decode(msg); // accept un-encrypted discovery broadcast hints
    if(!packet) return mesh.log.info('dropping invalid packet from',rinfo,msg.toString('hex'));
    tp.pipe(false, {type:'udp4',ip:rinfo.address,port:rinfo.port}, function(pipe){
      mesh.receive(packet, pipe);
    });
  }
function receive(msg, rinfo){
    var packet = lob.decloak(msg);
    if(!packet) packet = lob.decode(msg); // accept un-encrypted discovery broadcast hints
    if(!packet) return mesh.log.info('dropping invalid packet from',rinfo,msg.toString('hex'));
    tp.pipe(false, {type:'udp4',ip:rinfo.address,port:rinfo.port}, function(pipe){
      mesh.receive(packet, pipe);
    });
  }
function receive ( msg , rinfo ) { var packet = lob . decloak ( msg ) ; if ( ! packet ) packet = lob . decode ( msg ) ; // accept un-encrypted discovery broadcast hints if ( ! packet ) return mesh . log . info ( 'dropping invalid packet from' , rinfo , msg . toString ( 'hex' ) ) ; tp . pipe ( false , { type : 'udp4' , ip : rinfo . address , port : rinfo . port } , function ( pipe ) { mesh . receive ( packet , pipe ) ; } ) ; }
generic handler to receive udp datagrams
generic handler to receive udp datagrams