Using System;
Using System. Net;
Using System. IO;
Using System. Text;
Using System. Net. Sockets;
Namespace zhangyuk.net. csdn. blog. ftpclient
{
/// <Summary>
/// FTP Client
/// </Summary>
Public class FTPClient
{
# Region Constructor
/// <Summary>
/// Default constructor
/// </Summary>
Public FTPClient ()
{
StrRemoteHost = "";
StrRemotePath = "";
StrRemoteUser = "";
StrRemotePass = "";
StrRemotePort = 21;
BConnected = false;
}
/// <Summary>
/// Constructor
/// </Summary>
/// <Param name = "remoteHost"> </param>
/// <Param name = "remotePath"> </param>
/// <Param name = "remoteUser"> </param>
/// <Param name = "remotePass"> </param>
/// <Param name = "remotePort"> </param>
Public FTPClient (string remoteHost, string remotePath, string remoteUser, string remotePass, int remotePort)
{
StrRemoteHost = remoteHost;
StrRemotePath = remotePath;
StrRemoteUser = remoteUser;
StrRemotePass = remotePass;