abstract class NetworkUtil extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NetworkUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NetworkUtil()

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def isBlockHeaderStale(blockHeader: BlockHeader, chainParams: ChainParams): Boolean

    Checks if the given block header is stale relative to the given chain parameters

    Checks if the given block header is stale relative to the given chain parameters

    See also

    https://github.com/bitcoin/bitcoin/blob/664500fc71a32d5066db8cb4a19ddc7005a1c9e9/src/net_processing.cpp#L1235

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isLocalhost(hostName: String): Boolean
  14. def isLoopbackAddress(uri: URI): Boolean

    Checks if the java.net.URI is pointing to a loopback address.

    Checks if the java.net.URI is pointing to a loopback address.

    returns

    a boolean indicating if the java.net.URI is a loopback address; or false otherwise.

  15. def isLoopbackAddress(socketAddress: InetSocketAddress): Boolean

    Checks if the java.net.InetSocketAddress is a loopback address.

    Checks if the java.net.InetSocketAddress is a loopback address.

    returns

    a boolean indicating if the java.net.InetSocketAddress is a loopback address; or false otherwise.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def parseIndividualMessages(bytes: ByteVector): (Vector[NetworkMessage], ByteVector)

    Akka sends messages as one byte stream.

    Akka sends messages as one byte stream. There is not a 1 to 1 relationship between byte streams received and bitcoin protocol messages. This function parses our byte stream into individual network messages

    bytes

    the bytes that need to be parsed into individual messages

    returns

    the parsed NetworkMessage's and the unaligned bytes that did not parse to a message

  20. def parseInetSocketAddress(address: ByteVector, port: Int): InetSocketAddress

    Parses IPV4,IPV6 ad TorV3 address bytes to string address

  21. def parseInetSocketAddress(address: String, defaultPort: => Int): InetSocketAddress

    Parses a string that looks like this to java.net.InetSocketAddress "neutrino.testnet3.suredbits.com:18333"

  22. def parseUnresolvedInetSocketAddress(bytes: ByteVector): String

    Parses TorV3 address bytes (pubkey) to string address

  23. def portIsBound(address: InetSocketAddress): Boolean
  24. final def randomPort(): Int

    Generates a random port not in use

    Generates a random port not in use

    Annotations
    @tailrec()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def torV3AddressToBytes(address: String): Array[Byte]

    converts a string TorV3 address to pubkey bytes

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped