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.
Inherited Members
Namespace: Libplanet.Net.Options
Assembly: Libplanet.Net.dll
Syntax
public class TimeoutOptions
Fields
| Improve this Doc View SourceDefaultDialTimeout
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 |
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 |
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 |
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 |
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 |
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 |
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 SourceDialTimeout
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
| Improve this Doc View SourceGetBlockHashesTimeout
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 |
GetBlocksBaseTimeout
The base timeout used when sending a request with Libplanet.Net.Messages.GetBlocksMsg to receive Libplanet.Net.Messages.BlocksMsg messages. Set to DefaultGetBlocksBaseTimeout seconds by default.
Declaration
public TimeSpan GetBlocksBaseTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
See Also
| Improve this Doc View SourceGetBlocksPerBlockHashTimeout
The additional amount to wait for each BlockHash in Libplanet.Net.Messages.GetBlocksMsg to receive Libplanet.Net.Messages.BlocksMsg messages. Set to DefaultGetBlocksPerBlockHashTimeout seconds by default.
Declaration
public TimeSpan GetBlocksPerBlockHashTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
See Also
| Improve this Doc View SourceGetTxsBaseTimeout
The base timeout used when sending a request with Libplanet.Net.Messages.GetTxsMsg to receive Transaction messages. Set to DefaultGetTxsBaseTimeout seconds by default.
Declaration
public TimeSpan GetTxsBaseTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
See Also
| Improve this Doc View SourceGetTxsPerTxIdTimeout
The additional amount to wait for each TxId in Libplanet.Net.Messages.GetTxsMsg to receive Transaction messages. Set to DefaultGetTxsPerTxIdTimeout seconds by default.
Declaration
public TimeSpan GetTxsPerTxIdTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
See Also
| Improve this Doc View SourceMaxTimeout
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 |