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

NameTypeDescription

server

user

password

NameTypeDescription

server

user

password

port

Properties

Boolean: Returns/Sets binary mode transfer.

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

String: User password.

Int32: Server port number. The default is 21.

String: Name of the FTP server.

String: User name.

Methods

Asynchronous download

ParameterTypeDescription

fileName

localFileName

resume

Asynchronous upload

ParameterTypeDescription

fileName

remoteFileName

resume

Change the current working directory on the remote FTP server.

ParameterTypeDescription

dir

Close the FTP connection.

Connect and login to the remote server.

Creates a new StreamReader bound to an incoming data socket.

Returns: StreamReader.

Open a new data socket.

Returns: Socket.

Delete a file from the remote FTP server.

ParameterTypeDescription

fileName

Disposes the FTP client

Download a file.

ParameterTypeDescription

fileName

Download a file.

ParameterTypeDescription

fileName

resume

Download a file to a local file name.

ParameterTypeDescription

fileName

localFileName

Download a file to a local file name.

ParameterTypeDescription

fileName

localFileName

resume

Returns the current directory.

Returns: String.

Returns a FileSystemInfo array.

ParameterTypeDescription

mask

Returns: FtpFileInfo[].

Return a string array containing the remote directory's file list.

ParameterTypeDescription

mask

Returns: String[].

Return the size of a file.

ParameterTypeDescription

fileName

Returns: Int64.

Create a directory on the remote FTP server.

ParameterTypeDescription

dir

Reads the next response code from the connected socket.

Returns: FtpResponse.

Delete a directory on the remote FTP server.

ParameterTypeDescription

dir

Rename a file on the remote FTP server.

ParameterTypeDescription

oldFileName

newFileName

ParameterTypeDescription

command

validCodes

Returns: FtpResponse.

Upload a file.

ParameterTypeDescription

fileName

Upload a file.

ParameterTypeDescription

fileName

resume

Upload a file.

ParameterTypeDescription

fileName

remoteFileName

Upload a file.

ParameterTypeDescription

fileName

remoteFileName

resume

Events

FtpEventHandler Status event

Last updated