Пример #1
0
 public static void CreateInstance()
 {
     if (_instance != null)
     {
         return;
     }
     _instance = new TCPListener();
 }
Пример #2
0
        private TCPListener()
        {
            _clients       = new List <RemoteClient>();
            _threadRunning = true;

            _listenThread = new Thread("Client Listen Thread");
            _listenThread.AddTask(this);
            _secondaryListinerActive = false;
            _listenThread.Start();
            _instance = this;
        }