Program.cs 397 B

123456789101112131415161718192021
  1. using ChatServer.util;
  2. using System.Threading;
  3. // Server
  4. namespace ChatServer
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. Run();
  11. }
  12. static void Run()
  13. {
  14. ThreadPool.SetMaxThreads(5, 5); // 스레드 풀에 있는 (최대 작업자 스레드수, 비동기 IO 스레드수)
  15. QueueUtil.StartDetecting();
  16. NetUtil.StartListening();
  17. }
  18. }
  19. }