Exemplo n.º 1
0
 /// <summary>
 /// Constructor taking hostname, username and password
 /// </summary>
 /// <param name="Hostname">in either ftp://ftp.host.com or ftp.host.com form</param>
 /// <param name="Username">Leave blank to use 'anonymous' but set password to your email</param>
 /// <param name="Password"></param>
 /// <remarks></remarks>
 public FtpClient(string Hostname, string Username, string Password)
 {
     _hostname = Hostname;
     _username = Username;
     _password = Password;
     _proxy    = FtpWebRequest.GetSystemWebProxy();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor just taking the hostname
 /// </summary>
 /// <param name="Hostname">in either ftp://ftp.host.com or ftp.host.com form</param>
 /// <remarks></remarks>
 public FtpClient(string Hostname)
 {
     _hostname = Hostname;
     _proxy    = FtpWebRequest.GetSystemWebProxy();
 }