-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add class for a packet reader monitor.
- Loading branch information
1 parent
66e730c
commit 8c40467
Showing
2 changed files
with
46 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace WaywardGamers.KParser.Monitoring | ||
{ | ||
public class PacketReader : AbstractReader | ||
{ | ||
#region Singleton Constructor | ||
// Make the class a singleton | ||
private static readonly PacketReader instance = new PacketReader(); | ||
|
||
/// <summary> | ||
/// Gets the singleton instance of the LogParser class. | ||
/// This is the only internal way to access the singleton. | ||
/// </summary> | ||
internal static PacketReader Instance { get { return instance; } } | ||
|
||
/// <summary> | ||
/// Private constructor ensures singleton purity. | ||
/// </summary> | ||
private PacketReader() | ||
{ | ||
// Layout of total structure: | ||
// 50 offsets to new log records (short): 100 bytes | ||
// 50 offsets to old log offsets (short): 100 bytes | ||
// ChatLogInfoStruct block | ||
//sizeOfChatLogInfoStruct = (uint)(Marshal.SizeOf(typeof(ChatLogInfoStruct))); | ||
|
||
//sizeOfChatLogControlStruct = (uint)(Marshal.SizeOf(typeof(ChatLogControlStruct))); | ||
} | ||
#endregion | ||
|
||
public override void Stop() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public override DataSource ParseModeType | ||
{ | ||
get { throw new NotImplementedException(); } | ||
} | ||
} | ||
} |
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