OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
OSDP.Net.Tracing.ParsedTextWriter Class Reference

Writes parsed OSDP packets to a human-readable text file. More...

Inheritance diagram for OSDP.Net.Tracing.ParsedTextWriter:

Public Member Functions

 ParsedTextWriter (string outputPath, byte[] securityKey=null)
 Creates a new ParsedTextWriter with the default formatter.
 ParsedTextWriter (string outputPath, byte[] securityKey, IPacketTextFormatter formatter)
 Creates a new ParsedTextWriter with a custom formatter.
void WritePacket (byte[] packetData, DateTime timestamp)
 Writes a packet to the output file.
void Dispose ()

Detailed Description

Writes parsed OSDP packets to a human-readable text file.

Definition at line 9 of file ParsedTextWriter.cs.

Constructor & Destructor Documentation

◆ ParsedTextWriter() [1/2]

OSDP.Net.Tracing.ParsedTextWriter.ParsedTextWriter ( string outputPath,
byte[] securityKey = null )
inline

Creates a new ParsedTextWriter with the default formatter.

Parameters
outputPathPath to the output text file.
securityKeyOptional security key for decrypting secure channel messages.

Definition at line 21 of file ParsedTextWriter.cs.

◆ ParsedTextWriter() [2/2]

OSDP.Net.Tracing.ParsedTextWriter.ParsedTextWriter ( string outputPath,
byte[] securityKey,
IPacketTextFormatter formatter )
inline

Creates a new ParsedTextWriter with a custom formatter.

Parameters
outputPathPath to the output text file.
securityKeyOptional security key for decrypting secure channel messages.
formatterThe formatter to use for packet output.

Definition at line 32 of file ParsedTextWriter.cs.

Member Function Documentation

◆ Dispose()

void OSDP.Net.Tracing.ParsedTextWriter.Dispose ( )
inline

Definition at line 69 of file ParsedTextWriter.cs.

◆ WritePacket()

void OSDP.Net.Tracing.ParsedTextWriter.WritePacket ( byte[] packetData,
DateTime timestamp )
inline

Writes a packet to the output file.

Parameters
packetDataThe raw packet bytes.
timestampThe timestamp when the packet was captured.

Definition at line 48 of file ParsedTextWriter.cs.


The documentation for this class was generated from the following file: