Function FlashNode.getFlashClient

Get an instance of a Flash client for the given public key. The name registry is consulted to look up the IP for the given key.

FlashAPI getFlashClient (
  in ref const(PublicKey) peer_pk,
  core.time.Duration timeout,
  Address address = Address(URL(null, GenericPath(null), null, cast(ushort)0u, null, null, null, null))
) @trusted;

The client is cached internally.

Parameters

NameDescription
peer_pk the public key of the Flash node.
timeout the timeout duration to use for requests.
address address provided by the peer

Returns

the Flash client, or null if none was found