Skip to content

IHeader Interface

Max edited this page Nov 23, 2020 · 7 revisions

File: Petersilie.ManagementTools.NetworkMonitor.IHeader.cs
Namespace: Petersilie.ManagementTools.NetworkMonitor

Every header that is not a Internet Protocol header should implement this interface.

Properties


Packet

byte[] Packet { get; }

Description: Raw packet data that contains header bytes and data payload.


Protocol

Protocol Protocol { get; }

Description: Protocol enum that can be used in the class that implements this interface to determine which Protocol is beeing implemented.




Methods


ToByte

byte[] ToByte()

Description: Function that converts the protocol that implements this interface back into a raw byte stream


ToStream()

System.IO.Stream ToStream()

Description: Function that converts the protocol that implements this interface back into a Stream object.

Clone this wiki locally