Function FlashNode.makeFlashClient

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 makeFlashClient (
  in ref const(Address) address,
  in const(core.time.Duration) timeout
) @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