SalFtpClient
PPJ.Runtime.Internet.SalFtpClient
Namespace: PPJ.Runtime.Internet
Assembly: PPJ.Runtime.49 (4.9.0.0)
FTP implementation used to support SalQuickFtp.
public class SalFtpClient : IDisposable
Constructors
SalFtpClient()

SalFtpClient(server, user, password)

SalFtpClient(server, user, password, port)

Properties
BinaryMode

Boolean: Returns/Sets binary mode transfer.
Connected

Boolean: Returns true if the connection to the server is established.
Password

String: User password.
Port

Int32: Server port number. The default is 21.
Server

String: Name of the FTP server.
User

String: User name.
Methods
AsyncDownload(fileName, localFileName, resume)

Asynchronous download
AsyncUpload(fileName, remoteFileName, resume)

Asynchronous upload
ChangeDir(dir)

Change the current working directory on the remote FTP server.
Close()

Close the FTP connection.
Connect()

Connect and login to the remote server.
ConnectDataReader()

Creates a new StreamReader bound to an incoming data socket.
Returns: StreamReader.
ConnectDataSocket()

Open a new data socket.
Returns: Socket.
DeleteFile(fileName)

Delete a file from the remote FTP server.
Dispose()

Disposes the FTP client
Download(fileName)

Download a file.
Download(fileName, resume)

Download a file.
Download(fileName, localFileName)

Download a file to a local file name.
Download(fileName, localFileName, resume)

Download a file to a local file name.
GetCurDir()

Returns the current directory.
Returns: String.
GetFileInfo(mask)

Returns a FileSystemInfo array.
Returns: FtpFileInfo[].
GetFileList(mask)

Return a string array containing the remote directory's file list.
Returns: String[].
GetFileSize(fileName)

Return the size of a file.
Returns: Int64.
MakeDir(dir)

Create a directory on the remote FTP server.
ReadResponse()

Reads the next response code from the connected socket.
Returns: FtpResponse.
RemoveDir(dir)

Delete a directory on the remote FTP server.
RenameFile(oldFileName, newFileName)

Rename a file on the remote FTP server.
SendCommand(command, validCodes)

Returns: FtpResponse.
Upload(fileName)

Upload a file.
Upload(fileName, resume)

Upload a file.
Upload(fileName, remoteFileName)

Upload a file.
Upload(fileName, remoteFileName, resume)

Upload a file.
Events
StatusUpdate

FtpEventHandler Status event
Last updated