object NetworkUtil extends NetworkUtil

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

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

    Definition Classes
    NetworkUtil
    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
    Definition Classes
    NetworkUtil
  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.

    Definition Classes
    NetworkUtil
  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.

    Definition Classes
    NetworkUtil
  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

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

    Parses IPV4,IPV6 ad TorV3 address bytes to string address

    Parses IPV4,IPV6 ad TorV3 address bytes to string address

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

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

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

    Definition Classes
    NetworkUtil
  22. def parseUnresolvedInetSocketAddress(bytes: ByteVector): String

    Parses TorV3 address bytes (pubkey) to string address

    Parses TorV3 address bytes (pubkey) to string address

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

    Generates a random port not in use

    Generates a random port not in use

    Definition Classes
    NetworkUtil
    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

    converts a string TorV3 address to pubkey bytes

    Definition Classes
    NetworkUtil
  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 NetworkUtil

Inherited from AnyRef

Inherited from Any

Ungrouped