Class HttpDiscovery

  • All Implemented Interfaces:
    PeerDiscovery

    public class HttpDiscovery
    extends java.lang.Object
    implements PeerDiscovery
    A class that knows how to read signed sets of seeds over HTTP, using a simple protobuf based protocol. See the peerseeds.proto file for the definition, with a gzipped delimited SignedPeerSeeds being the root of the data. This is not currently in use by the Bitcoin community, but rather, is here for experimentation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HttpDiscovery.Details  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.net.InetSocketAddress> getPeers​(long services, long timeoutValue, java.util.concurrent.TimeUnit timeoutUnit)
      Queries the addresses.
      java.util.List<java.net.InetSocketAddress> protoToAddrs​(PeerSeedProtos.SignedPeerSeeds proto)  
      void shutdown()
      Stops any discovery in progress when we want to shut down quickly.
      • Methods inherited from class java.lang.Object

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