-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
382 additions
and
484 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
46 changes: 23 additions & 23 deletions
46
...nel.Library/Types/NtEndpointStatistics.cs → ...unnel.Library/Types/EndpointStatistics.cs
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
using Newtonsoft.Json.Converters; | ||
using static NetTunnel.Library.Constants; | ||
|
||
namespace NetTunnel.Library.Types | ||
{ | ||
public class NtEndpointStatistics | ||
{ | ||
/// <summary> | ||
/// Used to determine if anything has changed. | ||
/// </summary> | ||
public int ChangeHash { get; set; } | ||
public ulong CurrentConnections { get; set; } | ||
public ulong TotalConnections { get; set; } | ||
[Newtonsoft.Json.JsonConverter(typeof(StringEnumConverter))] | ||
public NtDirection Direction { get; set; } | ||
public Guid TunnelId { get; set; } | ||
public Guid EndpointId { get; set; } | ||
public ulong BytesReceived { get; set; } | ||
public ulong BytesSent { get; set; } | ||
public double BytesReceivedKb => BytesReceived / 1024.0; | ||
public double BytesSentKb => BytesSent / 1024.0; | ||
} | ||
} | ||
using Newtonsoft.Json.Converters; | ||
using static NetTunnel.Library.Constants; | ||
|
||
namespace NetTunnel.Library.Types | ||
{ | ||
public class EndpointStatistics | ||
{ | ||
/// <summary> | ||
/// Used to determine if anything has changed. | ||
/// </summary> | ||
public int ChangeHash { get; set; } | ||
public ulong CurrentConnections { get; set; } | ||
public ulong TotalConnections { get; set; } | ||
[Newtonsoft.Json.JsonConverter(typeof(StringEnumConverter))] | ||
public NtDirection Direction { get; set; } | ||
public Guid TunnelId { get; set; } | ||
public Guid EndpointId { get; set; } | ||
public ulong BytesReceived { get; set; } | ||
public ulong BytesSent { get; set; } | ||
public double BytesReceivedKb => BytesReceived / 1024.0; | ||
public double BytesSentKb => BytesSent / 1024.0; | ||
} | ||
} |
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
Oops, something went wrong.