Class Peer

  • All Implemented Interfaces:
    org.bitcoindevkit.Disposable

    public final class Peer
     implements Disposable
                        

    A peer to connect to over the Bitcoin peer-to-peer network.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final IpAddress getAddress() The IP address to reach the node.
      final Unit setAddress(IpAddress address) The IP address to reach the node.
      final UShort getPort() The port to reach the node.
      final Unit setPort(UShort port) The port to reach the node.
      final Boolean getV2Transport() Does the remote node offer encrypted peer-to-peer connection.
      final Unit setV2Transport(Boolean v2Transport) Does the remote node offer encrypted peer-to-peer connection.
      Unit destroy()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait