src/primitives/netaddress.js
function NetAddress(options) {
  if (!(this instanceof NetAddress))
    return new NetAddress(options);

  this.host = '0.0.0.0';
  this.port = 0;
  this.services = 0;
  this.time = 0;
  this.hostname = '0.0.0.0:0';
  this.raw = IP.ZERO_IP;

  if (options)
    this.fromOptions(options);
}
function NetAddress(options) {
  if (!(this instanceof NetAddress))
    return new NetAddress(options);

  this.host = '0.0.0.0';
  this.port = 0;
  this.services = 0;
  this.time = 0;
  this.hostname = '0.0.0.0:0';
  this.raw = IP.ZERO_IP;

  if (options)
    this.fromOptions(options);
}
function NetAddress ( options ) { if ( ! ( this instanceof NetAddress ) ) return new NetAddress ( options ) ; this . host = '0.0.0.0' ; this . port = 0 ; this . services = 0 ; this . time = 0 ; this . hostname = '0.0.0.0:0' ; this . raw = IP . ZERO_IP ; if ( options ) this . fromOptions ( options ) ; }
Represents a network address.
@alias module:primitives.NetAddress
@constructor
@param {Object} options
@param {Number?} options.time - Timestamp.
@param {Number?} options.services - Service bits.
@param {String?} options.host - IP address (IPv6 or IPv4).
@param {Number?} options.port - Port.
@property {Host} host
@property {Number} port
@property {Number} services
@property {Number} time
Represents a network address .