An IPNet represents an IP network.

Hierarchy

  • IPNet

Constructors

Properties

Accessors

Methods

Constructors

Properties

ip: IP
mask: IPMask

Accessors

  • get network(): string
  • returns the address's network name, "ip+net".

    Returns string

Methods

  • reports whether the network includes ip.

    Parameters

    Returns boolean

  • returns the CIDR notation of n like "192.0.2.0/24" or "2001:db8::/48" as defined in RFC 4632 and RFC 4291.

    Remarks

    If the mask is not in the canonical form, it returns the string which consists of an IP address, followed by a slash character and a mask expressed as hexadecimal form with no punctuation like "198.51.100.0/c000ff00".

    Returns string

Generated using TypeDoc