Function RPCClient.this

Initialize an instance of an RPCClient

this (
  string host,
  ushort port,
  Duration retry_delay,
  uint max_retries,
  Duration ctimeout,
  Duration rtimeout,
  Duration wtimeout
) @trusted;

This does not actually perform any IO, except for looking up a Logger instance. Connection is done lazily (on method usage).

The total amount of time this class can wait is: (ctimeout + retry_delay) * max_retries.

Parameters

NameDescription
host IP address / host name of the remote node
port Port of the remote node
retry_delay Time to wait between retries
max_retries Number of times communication should be tried before an Exception will be thrown.
ctimeout Connection timeout
rtimeout Read timeout
wtimeout Write timeout