Example #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);
        }
 public static TCPControl GetInstance()
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new TCPControl();
     }
     return(uniqueInstance);
 }