Negligible Psychological Misery
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

harpagon

0.0.2 • Public • Published

Harpagon

Harpagon is a simple newtork tool for using UDP clients.

Install

npm install --save @chrispro/harpagon

API

-----------------------------------------------
var net = require('net');
var Lport = + process.env.LPORT || 12334;
var Rport = + process.env.RPORT || 43321;
var address = '255.255.255.0';
var	serviceType = 'upnp:rootdevice';
var rn = '\r\n';
var dgram = require('dgram');
var server = dgram.createSocket('udp4');

var dns = require('dns');
var udpClient = require('./src/lib/udpClient');
var remoteAddress = require('./src/lib/RemoteAddress');
var attacky = require('./src/lib/attacky');
var raider = require('./src/lib/raider');
----------------------------------------------
  dns.lookup(),
  dns.resolve(),
  dns.resolve*(),
  dns.reverse()
 
  server.resume();
  server.pause();


Example

 
 
 
   var addressMessage = server.on();
   var addressDns = dns.lookup();
   var addressPause = server.pause();
   var addressResume = server.resume();
 
   console.log(`server is in gravity ${address.address}:${address.port}`);
   console.log(`Resume server ${address.address}:${address.port}`);
   console.log("Your address>_:" + hostname + "||||"+ "PortName>_:"+  service + "||||"+ "Errors>_:" + err);
 
   

Install

npm i harpagon

DownloadsWeekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • avatar