abstract class NetworkUtil extends AnyRef
- Alphabetic
- By Inheritance
- NetworkUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new NetworkUtil()
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
- 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.
- 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.
- 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
- def parseInetSocketAddress(address: ByteVector, port: Int): InetSocketAddress
Parses IPV4,IPV6 ad TorV3 address bytes to string address
- def parseInetSocketAddress(address: String, defaultPort: => Int): InetSocketAddress
Parses a string that looks like this to java.net.InetSocketAddress "neutrino.testnet3.suredbits.com:18333"
- def parseUnresolvedInetSocketAddress(bytes: ByteVector): String
Parses TorV3 address bytes (pubkey) to string address
- def portIsBound(address: InetSocketAddress): Boolean
- final def randomPort(): Int
Generates a random port not in use
Generates a random port not in use
- 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
- 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()