示例#1
0
        public void TestMethod1()
        {
            NetCommUDP udp = new NetCommUDP();

            //Thread t = new Thread(() =>
            //{
            //    Thread.Sleep(10000);
            //    udp.Terminate();
            //});
            ////t.Start();
            udp.Listen();
        }
示例#2
0
        public MainServer(ItemsReceived itemsReceived)
        {
            LOG.Info("Initializing main server...");
            _db         = new Database();
            _netCommUdp = new NetCommUDP();
            _tcpServer  = new NetCommTCP(itemsReceived);

            ProcessStartUpParameters();
            ScheduleDatabaseBackup();

            LOG.Info("Main server initialized.");
        }