Esempio n. 1
0
        internal Stack_dll(ref RoutinesLibrary.Net.Protocols.TCP.TCP WinSock, byte _pcNumDevice, CStationBase.Protocol _FrameProtocol, EnumFrameFlowControl _Flowcontrol, int frameWindow)
        {
            m_phl = new Stack_phl(WinSock, (MAX_FRAME_LENGTH * frameWindow) + MAX_FRAME_LENGTH);
            m_phl.DataReceived += phl_DataReceived;
            m_phl.ErrorConnect += phl_ErrorConnect;

            Initialize(_pcNumDevice, _FrameProtocol, _Flowcontrol, frameWindow);
        }
Esempio n. 2
0
 internal void Eraser()
 {
     //Debug.Print("StackDll.Eraser")
     m_phl.Eraser();
     m_phl = null;
     //m_phl.DataReceived += phl_DataReceived;
     //m_phl.ErrorConnect += phl_ErrorConnect;
     m_FrameFIFOOut.Reset();
     m_FrameFIFOOut = null;
     m_MessageFIFOIn.Reset(); // #Edu#
     m_MessageFIFOIn = null;  // #Edu#
 }