Stentofon.AlphaCom.AlphaNet.dll
From Zenitel Wiki
Library for Handling AlphaNet communcation with AlphaCom node(s).
Release Info
Release State: Beta
Version: 0.1.2009.0421
See also Release Notes
Short Library Description
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).
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 | Experimental |
Config | Common definitions, and experimental config structures for the libray.. | Under Construction |
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;