Esempio n. 1
0
 static void Main(string[] args)
 {
     Worker worker = new Worker(6);
     Listener listener = new Listener();
     Console.WriteLine("Server is initialized,{0}\n==================",DateTime.Now);
     while (true)
     {
         string strData = listener.GetData();
         Console.WriteLine("Recived Request: {0},Time: {1}",strData,DateTime.Now);
         listener.CreateResponse(strData);
         worker.StartWork(Convert.ToInt32(strData));
     }
 }