示例#1
0
 public static void CreateInstance()
 {
     if (Instance != null)
     {
         return;
     }
     _instance = new ServerHandle();
 }
示例#2
0
        private ServerHandle()
        {
            _clients  = new List <Connection>();
            _requests = new Queue <Socket>();

            _listenThread = new Thread(WorkThread);
            _listenThread.Start();
            _secondaryListinerActive = false;

            _instance = this;
        }