public static void CreateInstance() { if (_instance != null) { return; } _instance = new TCPListener(); }
private TCPListener() { _clients = new List <RemoteClient>(); _threadRunning = true; _listenThread = new Thread("Client Listen Thread"); _listenThread.AddTask(this); _secondaryListinerActive = false; _listenThread.Start(); _instance = this; }