예제 #1
0
        static void Main(string[] args)
        {
            ServNet servNet = new ServNet();

            servNet.Start("127.0.0.1", 1234);

            while (true)
            {
                string str = Console.ReadLine();
                switch (str)
                {
                case "quit":
                    servNet.Close();
                    return;

                case "print":
                    servNet.Print();
                    break;
                }
            }
        }
예제 #2
0
 public ServNet()
 {
     instance = this;
 }