Example #1
0
		public FTPMonitor(FTPC ftpcom)
		{

			m_ftpcom = ftpcom;
			m_cmdSock = null;
			m_dataSock = null;
		}
Example #2
0
        public bool Connect(string hostname, int port)
        {
            bool bres = false;

            if (m_bConnected)
                return false;

            if (hostname != "" && port != 0)
            {
                m_cmdSock = new AsyncSocket(this);
                m_cmdSock.Connect(hostname, port);
                bres = true;
            }

            return bres;
        }
Example #3
0
        public bool Connect(string hostname, int port)
        {
            bool bres = false;

            if (m_bConnected)
            {
                return(false);
            }

            if (hostname != "" && port != 0)
            {
                m_cmdSock = new AsyncSocket(this);
                m_cmdSock.Connect(hostname, port);
                bres = true;
            }

            return(bres);
        }
Example #4
0
 private void Disconnect()
 {
     if (m_bConnected)
     {
         m_cmdSock.Close();
         m_cmdSock = null;
         m_bConnected = false;
     }
 }
Example #5
0
 public FTPMonitor(FTPC ftpcom)
 {
     m_ftpcom   = ftpcom;
     m_cmdSock  = null;
     m_dataSock = null;
 }