Show / Hide Table of Contents

Class TimeoutOptions

Various timeout options for sending and receiving Messages through an ITransport. Each timeout determines how long an ITransport should wait for all expected responses to arrive before giving up after sending a Message.

Inheritance
Object
TimeoutOptions
Namespace: Libplanet.Net
Assembly: Libplanet.Net.dll
Syntax
public class TimeoutOptions : object

Fields

| Improve this Doc View Source

DefaultDialTimeout

Declaration
public const int DefaultDialTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultGetBlockHashesTimeout

Declaration
public const int DefaultGetBlockHashesTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultGetBlocksBaseTimeout

Declaration
public const int DefaultGetBlocksBaseTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultGetBlocksPerBlockHashTimeout

Declaration
public const int DefaultGetBlocksPerBlockHashTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultGetTxsBaseTimeout

Declaration
public const int DefaultGetTxsBaseTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultGetTxsPerTxIdTimeout

Declaration
public const int DefaultGetTxsPerTxIdTimeout = null
Field Value
Type Description
Int32
| Improve this Doc View Source

DefaultMaxTimeout

Declaration
public const int DefaultMaxTimeout = null
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

DialTimeout

Determines how long an ITransport should wait before timing out when dialing peers for either PongMsg, NeighborsMsg, or Libplanet.Net.Messages.ChainStatusMsg for a long running process. Set to DefaultDialTimeout seconds by default.

Declaration
public TimeSpan DialTimeout { get; set; }
Property Value
Type Description
TimeSpan
See Also
DialTimeout
DialTimeout
| Improve this Doc View Source

GetBlockHashesTimeout

The timeout used when sending a request with Libplanet.Net.Messages.GetBlockHashesMsg to receive a Libplanet.Net.Messages.BlockHashesMsg message. Set to DefaultGetBlockHashesTimeout seconds by default.

Declaration
public TimeSpan GetBlockHashesTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

GetBlocksBaseTimeout

The base timeout used when sending a request with Libplanet.Net.Messages.GetBlocksMsg to receive Libplanet.Blocks messages. Set to DefaultGetBlocksBaseTimeout seconds by default.

Declaration
public TimeSpan GetBlocksBaseTimeout { get; set; }
Property Value
Type Description
TimeSpan
See Also
GetBlocksPerBlockHashTimeout
| Improve this Doc View Source

GetBlocksPerBlockHashTimeout

The additional amount to wait for each BlockHash in Libplanet.Net.Messages.GetBlocksMsg to receive Libplanet.Blocks messages. Set to DefaultGetBlocksPerBlockHashTimeout seconds by default.

Declaration
public TimeSpan GetBlocksPerBlockHashTimeout { get; set; }
Property Value
Type Description
TimeSpan
See Also
GetBlocksBaseTimeout
| Improve this Doc View Source

GetTxsBaseTimeout

The base timeout used when sending a request with Libplanet.Net.Messages.GetTxsMsg to receive Libplanet.Tx messages. Set to DefaultGetTxsBaseTimeout seconds by default.

Declaration
public TimeSpan GetTxsBaseTimeout { get; set; }
Property Value
Type Description
TimeSpan
See Also
GetTxsPerTxIdTimeout
| Improve this Doc View Source

GetTxsPerTxIdTimeout

The additional amount to wait for each TxId in Libplanet.Net.Messages.GetTxsMsg to receive Libplanet.Tx messages. Set to DefaultGetTxsPerTxIdTimeout seconds by default.

Declaration
public TimeSpan GetTxsPerTxIdTimeout { get; set; }
Property Value
Type Description
TimeSpan
See Also
GetTxsBaseTimeout
| Improve this Doc View Source

MaxTimeout

The maximum timeout used in Swarm<T>. This is a hard limit for all Messages. Set to DefaultMaxTimeout seconds by default.

Declaration
public TimeSpan MaxTimeout { get; set; }
Property Value
Type Description
TimeSpan
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium