public bool Connect(string host, int port) { bool bres = false; if (_isConnect) return false; if (host != "" && port != 0) { _asyncSocket = new FtpSocket(this); _asyncSocket.Connect(host, port); bres = true; } return bres; }
public void DisConnect() { if (_isConnect) { _asyncSocket.Close(); _asyncSocket = null; _isConnect = false; } }
public FtpHandler(FtpHelper ftpHelper) { _ftpHelper = ftpHelper; _asyncSocket = null; }