Example #1
0
        static void Main(string[] args)
        {
            ServerModel serverModel = new ServerModel();

            serverModel.Run();
            new ServersData().Data();

            Console.ReadKey(true);
        }
Example #2
0
 public ServerControl()
 {
     serverModel = new ServerModel();
     this.tcpListener = new TcpListener(System.Net.IPAddress.Any, 31337);
     timer = new System.Timers.Timer(500);
     timer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
     timer.Enabled = true;
     listenForClients();
 }
        public static string ManagingCFC()
        {
            //Normaly, should use foreach loop, but it was giving a folty data
            for (int i = 3; i < dataChar.Length; i++)
            {
                if (dataChar[i] == dataSeperation)
                {
                }
            }
            return(data);

            //FID = flight info data
            return("FID" + ServerModel.FindInput(Int16.Parse(data)));
        }