static void Main(string[] args) { myServe serving = new myServe(); //We will start the client Loop serving.startConnection(); }
static public void readLine(myServe server) { while (true) { string s = Console.ReadLine(); if (s.Equals("exit")) { Console.WriteLine("exit"); server.save(); } } }