Пример #1
0
        private TCPControl tcpControl;    // User visible control section
        #endregion

        public TCPConnection(String name, String hostName, int port) : base(name, hostName, port)
        {
            client     = null;
            stream     = null;
            tcpControl = TCPControl.GetInstance();
            SetUIControl(tcpControl);
        }
Пример #2
0
 public static TCPControl GetInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new TCPControl();
     }
     return(uniqueInstance);
 }