Exemplo n.º 1
0
        //rx thread
        void NetRxThread()
        {
            try
            {
                NetPacket tmp = new NetPacket();
                while (RxRunning)
                {
                    while (smap.RxFifoCanRx() && nif.Recv(ref tmp))
                    {
                        smap.RxProcess(ref tmp);
                    }

                    System.Threading.Thread.Sleep(1);
                }
            }
            catch (Exception e)
            {
                LOG.MsgBoxErrorTrapper(e);
                throw;
            }
            //return 0;
        }