public FTPMonitor(FTPC ftpcom) { m_ftpcom = ftpcom; m_cmdSock = null; m_dataSock = null; }
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; }
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); }
private void Disconnect() { if (m_bConnected) { m_cmdSock.Close(); m_cmdSock = null; m_bConnected = false; } }