Packages

class BlockList extends netMod.BlockList

Annotations
@JSType() @JSImport("node:net", "BlockList") @native()
Source
nodeNetMod.scala
Linear Supertypes
netMod.BlockList, StObject, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockList
  2. BlockList
  3. StObject
  4. Object
  5. Any
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BlockList()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAddress(address: scala.Predef.String, type: IPVersion): Unit
    Definition Classes
    BlockList
  5. def addAddress(address: scala.Predef.String): Unit

    Adds a rule to block the given IP address.

    Adds a rule to block the given IP address.

    address

    An IPv4 or IPv6 address.

    Definition Classes
    BlockList
  6. def addAddress(address: netMod.SocketAddress): Unit
    Definition Classes
    BlockList
  7. def addRange(start: scala.Predef.String, end: scala.Predef.String, type: IPVersion): Unit
    Definition Classes
    BlockList
  8. def addRange(start: scala.Predef.String, end: scala.Predef.String): Unit

    Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).

    Adds a rule to block a range of IP addresses from start (inclusive) to end (inclusive).

    start

    The starting IPv4 or IPv6 address in the range.

    end

    The ending IPv4 or IPv6 address in the range.

    Definition Classes
    BlockList
  9. def addRange(start: netMod.SocketAddress, end: netMod.SocketAddress): Unit
    Definition Classes
    BlockList
  10. def addSubnet(net: scala.Predef.String, prefix: Double, type: IPVersion): Unit
    Definition Classes
    BlockList
  11. def addSubnet(net: scala.Predef.String, prefix: Double): Unit
    Definition Classes
    BlockList
  12. def addSubnet(net: netMod.SocketAddress, prefix: Double): Unit

    Adds a rule to block a range of IP addresses specified as a subnet mask.

    Adds a rule to block a range of IP addresses specified as a subnet mask.

    net

    The network IPv4 or IPv6 address.

    prefix

    The number of CIDR prefix bits. For IPv4, this must be a value between 0 and 32. For IPv6, this must be between 0 and 128.

    Definition Classes
    BlockList
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def check(address: scala.Predef.String, type: IPVersion): Boolean
    Definition Classes
    BlockList
  15. def check(address: scala.Predef.String): Boolean
    Definition Classes
    BlockList
  16. def check(address: netMod.SocketAddress): Boolean

    Returns true if the given IP address matches any of the rules added to the BlockList.

    Returns true if the given IP address matches any of the rules added to the BlockList.

    address

    The IP address to check

    Definition Classes
    BlockList
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def hasOwnProperty(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  28. def propertyIsEnumerable(v: scala.Predef.String): Boolean
    Definition Classes
    Object
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toLocaleString(): scala.Predef.String
    Definition Classes
    Object
  31. def toString(): java.lang.String
    Definition Classes
    AnyRef → Any
  32. def valueOf(): Any
    Definition Classes
    Object
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from netMod.BlockList

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped