Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //run the server here
            server.Start();

            //Read console here
            while (true)
            {
                //Just some basic debugging and testing stuff
                string input = Console.ReadLine();
                if (input == "stop")
                {
                    server.Stop();
                    Environment.Exit(0);
                }
                else if (input == "send")
                {
                    SendFiles();
                }
                else
                {
                    InternalData d = new InternalData("rawtext", "", Encoding.ASCII.GetBytes(input));
                    server.SendBroadcast(d);
                }
            }

            //End of Main
        }