Пример #1
0
        public void SendClientMessage(string msg)
        {
            msg = SnakeServer.RemoveLineSymbols(msg);
            NetworkStream ns = new NetworkStream(Client);
            StreamWriter  sw = new StreamWriter(ns);

            sw.WriteLine(msg);
            sw.Flush();
        }
Пример #2
0
        public static void Main(string[] args)
        {
            SnakeServer server = new SnakeServer();

            server.ExecuteServer();
        }