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
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Net.Options
Assembly: Libplanet.Net.dll
Syntax
public class TimeoutOptions

Fields

| Improve this Doc View Source

DefaultDialTimeout

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.

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

DefaultGetBlockHashesTimeout

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.

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

DefaultGetBlocksBaseTimeout

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.

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

DefaultGetBlocksPerBlockHashTimeout

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.

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

DefaultGetTxsBaseTimeout

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.

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

DefaultGetTxsPerTxIdTimeout

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.

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

DefaultMaxTimeout

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.

Declaration
public const int DefaultMaxTimeout = 150
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. 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–2023 Planetarium