Пример #1
0
        /// <summary>
        /// Run the protocol state machines a single time.
        /// Alternative to Start/Stop when no background thread should be used
        /// Has to be called frequently
        /// </summary>
        public void Run()
        {
            linkLayer.Run();

            if (fileClient != null)
            {
                fileClient.HandleFileService();
            }
        }
Пример #2
0
        /// <summary>
        /// Run the protocol state machines a single time.
        /// Alternative to Start/Stop when no background thread should be used
        /// Has to be called frequently
        /// </summary>
        public void Run()
        {
            if (fatalError == false)
            {
                linkLayer.Run();

                if (fileClient != null)
                {
                    fileClient.HandleFileService();
                }
            }
        }
Пример #3
0
        /// <summary>
        /// Run the protocol state machines a single time.
        /// Alternative to Start/Stop when no background thread should be used
        /// Has to be called frequently
        /// </summary>
        public void Run()
        {
            if (port != null)
            {
                if (port.IsOpen == false)
                {
                    port.Open();
                }

                port.DiscardInBuffer();
            }

            linkLayer.Run();

            if (fileClient != null)
            {
                fileClient.HandleFileService();
            }
        }