Example #1
0
        static void Main(string[] args)
        {
            ConfigHandler.WriteDefaultConfig();
            Bans.CreateBanFile();
            Encryption.GenerateRSAKeys();
            Encryption.GenerateAESKeys();
            AddCommands.Add();
            ChannelHandler.CreateChannelDataFile();

            bool quitNow = false;

            while (!quitNow)
            {
                Console.Title = "TCPChat - Server";
                Console.WriteLine("Commands: \n");
                Console.WriteLine("/server \n");
                Console.WriteLine("/quit \n");
#if (DEVMODE)
                InputServerConfig();
#else
                string command = Console.ReadLine();
                switch (command)
                {
                case "/server":
                    InputServerConfig();
                    break;

                case "/quit":
                    quitNow = true;
                    break;
                }
#endif
            }
        }
Example #2
0
 public static void ClientChannelSwitch(ClientInstance instance, string parameters)
 {
     ChannelHandler.ClientRequestsChannelSwitch(instance, parameters);
 }