3using System.Threading.Tasks;
51 #region ICommunicationLayer
67 DateTime.Now.AddHours(1),
68 (
_) =>
this.Remove(Sniffer),
80 DateTime.Now.AddHours(1),
83 foreach (ISniffer Sniffer in Sniffers)
140 public void ReceiveBinary(
bool ConstantBuffer,
byte[] Data,
int Offset,
int Count) =>
HttpModule.WebServer?.ReceiveBinary(ConstantBuffer, Data, Offset, Count);
164 public void TransmitBinary(
bool ConstantBuffer,
byte[] Data,
int Offset,
int Count) =>
HttpModule.WebServer?.TransmitBinary(ConstantBuffer, Data, Offset, Count);
222 public void ReceiveBinary(DateTime Timestamp,
bool ConstantBuffer,
byte[] Data) =>
HttpModule.WebServer?.ReceiveBinary(Timestamp, ConstantBuffer, Data);
233 public void ReceiveBinary(DateTime Timestamp,
bool ConstantBuffer,
byte[] Data,
int Offset,
int Count) =>
HttpModule.WebServer?.ReceiveBinary(Timestamp, ConstantBuffer, Data, Offset, Count);
249 public void TransmitBinary(DateTime Timestamp,
bool ConstantBuffer,
byte[] Data) =>
HttpModule.WebServer?.TransmitBinary(Timestamp, ConstantBuffer, Data);
260 public void TransmitBinary(DateTime Timestamp,
bool ConstantBuffer,
byte[] Data,
int Offset,
int Count) =>
HttpModule.WebServer?.TransmitBinary(Timestamp, ConstantBuffer, Data, Offset, Count);
281 public void Information(DateTime Timestamp,
string Comment) =>
HttpModule.WebServer?.Information(Timestamp, Comment);
302 public void Exception(DateTime Timestamp,
string Exception) =>
HttpModule.WebServer?.Exception(Timestamp, Exception);
309 public void Exception(DateTime Timestamp, Exception Exception) =>
HttpModule.WebServer?.Exception(Timestamp, Exception);
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Node representing an external web node.
Node representing the local web server.
void TransmitBinary(bool ConstantBuffer, byte[] Data, int Offset, int Count)
Called when binary data has been transmitted.
ISniffer[] Sniffers
Registered sniffers.
override Task< bool > AcceptsChildAsync(INode Child)
TODO
bool HasSniffers
If there are sniffers registered on the object.
bool Remove(ISniffer Sniffer)
Removes a sniffer, if registered.
void Information(DateTime Timestamp, string Comment)
Called to inform the viewer of something.
void Add(ISniffer Sniffer)
Adds a sniffer to the node.
void Error(string Error)
Called to inform the viewer of an error state.
void Exception(string Exception)
Called to inform the viewer of an exception state.
void ReceiveText(DateTime Timestamp, string Text)
Called when text has been received.
void Error(DateTime Timestamp, string Error)
Called to inform the viewer of an error state.
LocalWebServerNode()
Node representing a connection to an MQTT broker.
void ReceiveBinary(DateTime Timestamp, bool ConstantBuffer, byte[] Data, int Offset, int Count)
Called when binary data has been received.
void TransmitBinary(int Count)
Called when binary data has been transmitted.
void Exception(DateTime Timestamp, Exception Exception)
Called to inform the viewer of an exception state.
void AddRange(IEnumerable< ISniffer > Sniffers)
Adds a range of sniffers to the node.
void Warning(string Warning)
Called to inform the viewer of a warning state.
override Task< string > GetTypeNameAsync(Language Language)
Type name representing data.
void Exception(Exception Exception)
Called to inform the viewer of an exception state.
void ReceiveBinary(bool ConstantBuffer, byte[] Data, int Offset, int Count)
Called when binary data has been received.
void TransmitBinary(DateTime Timestamp, bool ConstantBuffer, byte[] Data, int Offset, int Count)
Called when binary data has been transmitted.
void ReceiveBinary(bool ConstantBuffer, byte[] Data)
Called when binary data has been received.
void Information(string Comment)
Called to inform the viewer of something.
override Task< bool > AcceptsParentAsync(INode Parent)
If the node accepts a presumptive parent, i.e. can be added to that parent (if that parent accepts th...
void TransmitBinary(bool ConstantBuffer, byte[] Data)
Called when binary data has been transmitted.
void ReceiveText(string Text)
Called when text has been received.
void ReceiveBinary(DateTime Timestamp, bool ConstantBuffer, byte[] Data)
Called when binary data has been received.
void TransmitText(DateTime Timestamp, string Text)
Called when text has been transmitted.
void ReceiveBinary(DateTime Timestamp, int Count)
Called when binary data has been received.
void ReceiveBinary(int Count)
Called when binary data has been received.
void TransmitBinary(DateTime Timestamp, bool ConstantBuffer, byte[] Data)
Called when binary data has been transmitted.
void TransmitText(string Text)
Called when text has been transmitted.
bool DecoupledEvents
If events raised from the communication layer are decoupled, i.e. executed in parallel with the sourc...
IEnumerator< ISniffer > GetEnumerator()
Returns an enumerator that iterates through the collection.
void TransmitBinary(DateTime Timestamp, int Count)
Called when binary data has been transmitted.
void Exception(DateTime Timestamp, string Exception)
Called to inform the viewer of an exception state.
void Warning(DateTime Timestamp, string Warning)
Called to inform the viewer of a warning state.
Base class for all metering nodes.
INode Parent
Parent Node, or null if a root node.
Class for the root node of the Metering topology.
Interface for observable classes implementing communication protocols.
Interface for sniffers. Sniffers can be added to ICommunicationLayer classes to eavesdrop on communic...
Interface for nodes that are published through the concentrator interface.