|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Default implementation of IPacketTextFormatter for formatting OSDP packets as human-readable text. More...
Public Member Functions | |||||||||||||
| string | FormatPacket (Packet packet, DateTime timestamp, TimeSpan? timeDelta=null) | ||||||||||||
Formats a successfully parsed packet as text.
| |||||||||||||
| string | FormatError (byte[] rawData, DateTime timestamp, TimeSpan? timeDelta, string errorMessage) | ||||||||||||
Formats a packet that failed to parse due to an error.
| |||||||||||||
Default implementation of IPacketTextFormatter for formatting OSDP packets as human-readable text.
Definition at line 12 of file OSDPPacketTextFormatter.cs.
|
inline |
Formats a packet that failed to parse due to an error.
| rawData | The raw packet bytes. |
| timestamp | The timestamp when the packet was captured. |
| timeDelta | Optional time difference from the previous packet. |
| errorMessage | The error message describing why parsing failed. |
| ArgumentNullException | Thrown when rawData is null. |
| ArgumentNullException | Thrown when rawData is null. |
Implements OSDP.Net.Tracing.IPacketTextFormatter.
Definition at line 214 of file OSDPPacketTextFormatter.cs.
|
inline |
Formats a successfully parsed packet as text.
| packet | The parsed OSDP packet. |
| timestamp | The timestamp when the packet was captured. |
| timeDelta | Optional time difference from the previous packet. |
| ArgumentNullException | Thrown when packet is null. |
| ArgumentNullException | Thrown when packet is null. |
Implements OSDP.Net.Tracing.IPacketTextFormatter.
Definition at line 16 of file OSDPPacketTextFormatter.cs.
References OSDP.Net.Model.Packet.CommandType, OSDP.Net.Model.Packet.IsPayloadDecrypted, OSDP.Net.Model.Packet.IsSecureMessage, OSDP.Net.Model.Packet.IsUsingDefaultKey, OSDP.Net.Model.Packet.ParsePayloadData(), and OSDP.Net.Model.Packet.ReplyType.