public static TCPDataHandler GetInstance() { if (Instance == null) { Instance = new TCPDataHandler(); } return(Instance); }
private VRHandler() { tcph = TCPDataHandler.GetInstance(); this.PcName = Environment.UserName; entities = new List <Entity>(); @lock = false; tcph.AddTCPConnection("145.48.6.10", 6666); SerialDataHandler.getInstance().AddSubscriberToHandler(this); chatMessages = new List <String>(); }