object NetworkUtil extends NetworkUtil
- Alphabetic
- By Inheritance
- NetworkUtil
- NetworkUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLocalhost(hostName: String): Boolean
- Definition Classes
- NetworkUtil
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- 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
- 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
- def parseUnresolvedInetSocketAddress(bytes: ByteVector): String
Parses TorV3 address bytes (pubkey) to string address
Parses TorV3 address bytes (pubkey) to string address
- Definition Classes
- NetworkUtil
- def portIsBound(address: InetSocketAddress): Boolean
- Definition Classes
- NetworkUtil
- final def randomPort(): Int
Generates a random port not in use
Generates a random port not in use
- Definition Classes
- NetworkUtil
- Annotations
- @tailrec()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()