Actions

Difference between revisions of "Stentofon.AlphaCom.AlphaNet.dll"

From Zenitel Wiki

 
Line 1: Line 1:
Library for Handling AlphaNet communcation with AlphaCom node(s).
+
Library for Handling AlphaNet communication with AlphaCom node(s).
  
  
Line 10: Line 10:
 
For details see the compiled help file: Stentofon.AlphaCom.AlphaNet.chm
 
For details see the compiled help file: Stentofon.AlphaCom.AlphaNet.chm
  
One singel node as well as a complete AlphaCom node network is supported. The library includes code for Message parsing, Message sending, and being an AlphaNet client (TCP/IP, connection monitoring etc).  
+
One single node as well as a complete AlphaCom node network is supported. The library includes code for Message parsing, Message sending, and being an AlphaNet client (TCP/IP, connection monitoring etc).  
  
  
{| {{prettytable}}  class="sortable"  border="1"  
+
{|class="sortable"  border="1"  
 
|- style="background: #ffdead;"
 
|- style="background: #ffdead;"
 
! Namespace
 
! Namespace
Line 29: Line 29:
 
|-
 
|-
 
| Config
 
| Config
| Common definitions, and experimental config structures for the libray..
+
| Common definitions, and experimental config structures for the library..
 
| Beta Release
 
| Beta Release
 
|}
 
|}

Latest revision as of 11:27, 9 February 2023

Library for Handling AlphaNet communication with AlphaCom node(s).


Release Info

See Release Notes

Short Library Description

For details see the compiled help file: Stentofon.AlphaCom.AlphaNet.chm

One single node as well as a complete AlphaCom node network is supported. The library includes code for Message parsing, Message sending, and being an AlphaNet client (TCP/IP, connection monitoring etc).


Namespace Short Description Status
Messages Classes for all AlphaNet Data Protocol Messages, and general class for parsing of AlphaNet message. Beta Release
Client AlphaNet Client ("OPC mode") with .NET event support on messages Beta Release
Config Common definitions, and experimental config structures for the library.. Beta Release

AlphaNet Messages

Each AlphaNet Message has its own class derived from the base class ApplicationMessage. The SLLParser class does the real parsing job. It will return an ApplicationMessage object. Each derived ApplicationMessage is required to implement a ToString() method so every message is printable. The message format can also be configured through the AlphaConfig class and the OPCServerConfigurator application. If special handling of a message is required the application needs to read the member variables from the parsed object, example:


ApplicationMessage am = null; 
am = _alphaParser.DecodeMessage(Message);
if (am != null)
{
// Do special handling of Messages if needed.
     if (am is StationConnect)
     {
         StationConnect sc = (StationConnect)am;
         Int16 conRef = sc.ConnectionRef;