一个FTP客户端的C#代码

作者:袖梨 2022-07-02
using System;
using System.Net;
using System.IO;
using System.Text;
using System.Net.Sockets;
namespace zhangyuk.net.csdn.blog.ftpclient
{
 ///
 /// FTP Client
 ///

 public class FTPClient
 {
  #region 构造函数
  ///
  /// 缺省构造函数
  ///

  public FTPClient()
  {
     strRemoteHost  = "";
     strRemotePath  = "";
     strRemoteUser  = "";
     strRemotePass  = "";
     strRemotePort  = 21;
     bConnected     = false;
  }
  ///
  /// 构造函数
  ///

  ///
  ///
  ///
  ///
  ///
  public FTPClient( string remoteHost, string remotePath, string remoteUser, string remotePass, int remotePort )
  {
     strRemoteHost  = remoteHost;
     strRemotePath  = remotePath;
     strRemoteUser  = remoteUser;
     strRemotePass  = remotePass;

相关文章

精彩推荐