forked from aloisdg/Ether.Network
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed ClientRetryOptions to NetClientRetryOptions and moved it to a…
… unique file
- Loading branch information
Showing
3 changed files
with
33 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Ether.Network.Client | ||
{ | ||
/// <summary> | ||
/// Options defining how a <see cref="NetClient"/> will handle a failed connection attempt | ||
/// </summary> | ||
public enum NetClientRetryOptions | ||
{ | ||
/// <summary> | ||
/// The client will only try to connect one time | ||
/// </summary> | ||
OneTime = 0, | ||
|
||
/// <summary> | ||
/// The client will try to connect a specific amount of times | ||
/// </summary> | ||
Limited = 1, | ||
|
||
/// <summary> | ||
/// The client will try infinitely to connect to the server | ||
/// </summary> | ||
Infinite = 2 | ||
} | ||
} |