public void SendClientMessage(string msg) { msg = SnakeServer.RemoveLineSymbols(msg); NetworkStream ns = new NetworkStream(Client); StreamWriter sw = new StreamWriter(ns); sw.WriteLine(msg); sw.Flush(); }
public static void Main(string[] args) { SnakeServer server = new SnakeServer(); server.ExecuteServer(); }