Esempio n. 1
0
        /// <summary>
        /// Creates the application layer master.
        /// </summary>
        /// <param name="pCommLayer">The communication layer.</param>
        /// <param name="pProtParameters">The protocol parameters.</param>
        /// <param name="pStatistic">The  statistic.</param>
        /// <returns>IApplicationLayerMaster</returns>
        public IApplicationLayerMaster CreateApplicationLayerMaster
            (IProtocolParent pStatistic, ICommunicationLayer pCommLayer, ProtocolParameters pProtParameters)
        {
            SBUSProtocol mp = new SBUSProtocol(pStatistic, pCommLayer, pProtParameters, m_Pool);

            return(new SBUS_ApplicationLayerMaster(m_Pool, mp));
        }
 internal SBUS_ApplicationLayerSlave
     (SBUSProtocol cALProtocol, SesDBufferPool <SBUSbase_message> cPool)
     :
     base(cALProtocol.GetICommunicationLayer)
 {
     m_ALProtocol = cALProtocol;
     m_Pool       = cPool;
 }
 internal SBUS_ApplicationLayerSniffer(ICommunicationLayer commChannel, SBUSProtocol pProtocol)
     : base(commChannel)
 {
     m_ALProtocol = pProtocol;
 }
 /// <summary>
 /// ApplicationLayerMaster creator
 /// </summary>
 /// <param name="cPool">Empty data messages pool to be used by the protocol.</param>
 /// <param name="cProt">Protocol to be used.</param>
 internal SBUS_ApplicationLayerMaster
     (SesDBufferPool <FrameStateMachine> cPool, SBUSProtocol cProt)
     : base(cProt, cPool)
 {
 }