Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to implement timed packet drops but the timing values aren't c…
…onsistent or expected on the server
- Loading branch information
Showing
26 changed files
with
458 additions
and
183 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
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,23 @@ | ||
namespace Intersect.Network | ||
{ | ||
public class ConnectionStatistics | ||
{ | ||
public long Ping { get; set; } | ||
|
||
public long DroppedMessages { get; set; } | ||
|
||
public long ReceivedPackets { get; set; } | ||
|
||
public long ReceivedBytes { get; set; } | ||
|
||
public long ReceivedMessages { get; set; } | ||
|
||
public long ResentMessages { get; set; } | ||
|
||
public long SentPackets { get; set; } | ||
|
||
public long SentBytes { get; set; } | ||
|
||
public long SentMessages { get; set; } | ||
} | ||
} |
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,26 @@ | ||
| ||
using System; | ||
|
||
using Intersect.Utilities; | ||
|
||
namespace Intersect.Network.Packets | ||
{ | ||
public abstract class AbstractTimedPacket : CerasPacket | ||
{ | ||
protected AbstractTimedPacket() | ||
{ | ||
TimeMs = Timing.Global.TimeMs; | ||
RealTimeMs = Timing.Global.RealTimeMs; | ||
RawTimeMs = Timing.Global.RawTimeMs; | ||
OffsetMs = Timing.Global.Offset.Ticks / TimeSpan.TicksPerMillisecond; | ||
} | ||
|
||
public long TimeMs { get; set; } | ||
|
||
public long RealTimeMs { get; set; } | ||
|
||
public long RawTimeMs { get; set; } | ||
|
||
public long OffsetMs { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.