PPJ Desktop API
HomeCurrent IssuesDownloads
  • Welcome
  • Concepts
  • PPJ.Runtime.49
    • General
      • Sal
      • Sys
      • SalApplication
      • SalNamedProperties
      • SalWindow
      • WindowActionsEventArgs
      • SalXML
    • COM
      • SalCoClass
      • SalObject
      • SalOleErrorInfo
      • SalSafeArray
      • SalVariant
    • Controls
      • SalActiveX
      • SalBackgroundText
      • SalCheckBox
      • SalComboBox
      • SalContext
      • SalCustomControl
      • SalDataField
        • DataType
      • SalFrame
        • BorderStyle
      • SalGeneralWindow
      • SalGroupBox
      • SalGroupSeparator
      • SalHorizontalScrollBar
      • SalLine
        • LineStyle
        • LineType
      • SalListBox
      • SalMultilineField
      • SalNavigationBar
      • SalOptionButton
        • OptionButtonStyle
      • SalPicture
        • ImageStorage
      • SalPushbutton
      • SalRadioButton
      • SalTableWindow
        • CellType
        • FocusRowStyle
        • RowsSizingStyle
        • SalTableColumn
        • SalTableColumnCollection
        • SalTableRow
        • SalTableRowCollection
        • SalTableWindowBase
      • SalTreeControl
        • SalTreeItem
      • SalUserControl
      • SalVerticalScrollBar
    • Forms
      • AccessoryType
      • SalDialogBox
      • SalForm
      • SalFormClientArea
      • SalFormStatusBar
      • SalFormTableWindow
      • SalFormToolBar
      • SalFormWindow
      • SalMDIWindow
      • SalRibbonBarBase
      • SalRibbonBarForm
      • SalRibbonBarMDI
      • SalRibbonStatusBar
    • Interfaces
      • ISalControl
      • ISalEditControl
      • ISalListControl
      • ISalPictureControl
      • ISalRadioButton
      • ISalReport
      • ISalType
      • ISalAccessory
      • ISalMenu
      • ISalWindow
    • Internet
      • FtpEventArgs
      • FtpEventHandler
      • HttpEventArgs
      • HttpEventHandler
      • SalFtpClient
      • SalHttpClient
      • SalQuickFTP
      • SalQuickHTTP
    • Menus
      • SalContextMenu
      • SalFormMainMenu
      • SalMenuColumn
      • SalMenuItem
      • SalMenuRow
      • SalMenuSeparator
      • SalPopupMenu
      • SalWindowsMenu
    • QO
      • QO
      • SalQuickHTML
      • SalQuickTabs
      • SalQuickTabsDialog
      • SalQuickTabsForm
      • SalQuickTabsParent
      • SalQuickTabsParentDialog
      • SalQuickTabsParentForm
      • SalQuickToolTipCheckBox
      • SalQuickToolTipChildTable
      • SalQuickToolTipComboBox
      • SalQuickToolTipDataField
      • SalQuickToolTipHScrollBar
      • SalQuickToolTipListBox
      • SalQuickToolTipMultilineField
      • SalQuickToolTipOptionButton
      • SalQuickToolTipPicture
      • SalQuickToolTipPushButton
      • SalQuickToolTipRadioButton
      • SalQuickToolTipTableWindow
      • SalQuickToolTipVScrollBar
      • SalToolTipManager
    • Sql
      • SalSqlBindVariables
      • SalSqlError
      • SalSqlHandle
      • SalSqlSessionHandle
      • Sql
      • SqlContext
      • SqlOra
      • WhenSqlError
    • Types
      • SalArray
      • SalArray<T>
      • SalBinary
      • SalBoolean
      • SalDateTime
      • SalFileHandle
      • SalFunctionalClass
      • SalNumber
      • SalResource
      • SalString
      • SalStringContext
      • SalWindowHandle
  • PPJ.Runtime.DDE.49
    • General
      • SalDDE
  • PPJ.Runtime.Vis.49
    • General
      • Vis
      • VisTblEx
    • Controls
      • VisCalendar
      • VisCalendarDropDown
      • VisColorComboBox
      • VisColorListBox
      • VisColorPalette
      • VisColorPaletteBase
      • VisColorPaletteDropDown
      • VisComboBoxBase
      • VisDesktopListBox
      • VisDirListBox
      • VisDirTreeListBox
      • VisDriveListBox
      • VisDropDownBase
      • VisFileListBox
      • VisFontComboBox
      • VisFontListBox
      • VisFontNameComboBox
      • VisFontNameListBox
      • VisListBoxBase
      • VisListBoxExtension
      • VisListView
      • VisListViewDropDown
      • VisMeter
      • VisOutlineComboBox
      • VisOutlineListBox
      • VisPictureComboBox
      • VisPictureListBox
      • VisPoint
      • VisRadioListBox
      • VisRect
      • VisRichEdit
      • VisSize
      • VisSpinField
      • VisSplitter
      • VisSplitterWindow
        • Orientation
  • PPJ.Runtime.XSal.49
    • General
      • XSal
      • XSalScript
    • Controls
      • XSalFlatButton
      • XSalHSplitter
      • XSalSeparator
      • XSalSeparatorDoubleRaised
      • XSalSeparatorEtched
      • XSalSeparatorInvisible
      • XSalSeparatorSingleRaised
      • XSalSplitter
      • XSalToolbar
      • XSalToolbox
      • XSalVSplitter
Powered by GitBook
On this page
  • Constructors
  • SalFtpClient()
  • SalFtpClient(server, user, password)
  • SalFtpClient(server, user, password, port)
  • Properties
  • BinaryMode
  • Connected
  • Password
  • Port
  • Server
  • User
  • Methods
  • AsyncDownload(fileName, localFileName, resume)
  • AsyncUpload(fileName, remoteFileName, resume)
  • ChangeDir(dir)
  • Close()
  • Connect()
  • ConnectDataReader()
  • ConnectDataSocket()
  • DeleteFile(fileName)
  • Dispose()
  • Download(fileName)
  • Download(fileName, resume)
  • Download(fileName, localFileName)
  • Download(fileName, localFileName, resume)
  • GetCurDir()
  • GetFileInfo(mask)
  • GetFileList(mask)
  • GetFileSize(fileName)
  • MakeDir(dir)
  • ReadResponse()
  • RemoveDir(dir)
  • RenameFile(oldFileName, newFileName)
  • SendCommand(command, validCodes)
  • Upload(fileName)
  • Upload(fileName, resume)
  • Upload(fileName, remoteFileName)
  • Upload(fileName, remoteFileName, resume)
  • Events
  • StatusUpdate
  1. PPJ.Runtime.49
  2. Internet

SalFtpClient

PPJ.Runtime.Internet.SalFtpClient

PreviousHttpEventHandlerNextSalHttpClient

Last updated 2 years ago

Namespace: PPJ.Runtime.Internet

Assembly: PPJ.Runtime.49 (4.9.0.0)

FTP implementation used to support SalQuickFtp.

public class SalFtpClient : IDisposable
Public Class SalFtpClient
    Inherits IDisposable

Constructors

SalFtpClient()

SalFtpClient(server, user, password)

Name
Type
Description

server

user

password

SalFtpClient(server, user, password, port)

Name
Type
Description

server

user

password

port

Properties

Methods

Asynchronous download

Parameter
Type
Description

fileName

localFileName

resume

Asynchronous upload

Parameter
Type
Description

fileName

remoteFileName

resume

Change the current working directory on the remote FTP server.

Parameter
Type
Description

dir

Close the FTP connection.

Connect and login to the remote server.

Creates a new StreamReader bound to an incoming data socket.

Open a new data socket.

Delete a file from the remote FTP server.

Parameter
Type
Description

fileName

Disposes the FTP client

Download a file.

Parameter
Type
Description

fileName

Download a file.

Parameter
Type
Description

fileName

resume

Download a file to a local file name.

Parameter
Type
Description

fileName

localFileName

Download a file to a local file name.

Parameter
Type
Description

fileName

localFileName

resume

Returns the current directory.

Returns a FileSystemInfo array.

Parameter
Type
Description

mask

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

Parameter
Type
Description

mask

Return the size of a file.

Parameter
Type
Description

fileName

Create a directory on the remote FTP server.

Parameter
Type
Description

dir

Reads the next response code from the connected socket.

Delete a directory on the remote FTP server.

Parameter
Type
Description

dir

Rename a file on the remote FTP server.

Parameter
Type
Description

oldFileName

newFileName

Parameter
Type
Description

command

validCodes

Upload a file.

Parameter
Type
Description

fileName

Upload a file.

Parameter
Type
Description

fileName

resume

Upload a file.

Parameter
Type
Description

fileName

remoteFileName

Upload a file.

Parameter
Type
Description

fileName

remoteFileName

resume

Events

BinaryMode

: Returns/Sets binary mode transfer.

Connected

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

Password

: User password.

Port

: Server port number. The default is 21.

Server

: Name of the FTP server.

User

: User name.

AsyncDownload(fileName, localFileName, resume)

AsyncUpload(fileName, remoteFileName, resume)

ChangeDir(dir)

Close()

Connect()

ConnectDataReader()

Returns: .

ConnectDataSocket()

Returns: .

DeleteFile(fileName)

Dispose()

Download(fileName)

Download(fileName, resume)

Download(fileName, localFileName)

Download(fileName, localFileName, resume)

GetCurDir()

Returns: .

GetFileInfo(mask)

Returns: .

GetFileList(mask)

Returns: .

GetFileSize(fileName)

Returns: .

MakeDir(dir)

ReadResponse()

Returns: .

RemoveDir(dir)

RenameFile(oldFileName, newFileName)

SendCommand(command, validCodes)

Returns: .

Upload(fileName)

Upload(fileName, resume)

Upload(fileName, remoteFileName)

Upload(fileName, remoteFileName, resume)

StatusUpdate

Status event

Boolean
Boolean
String
Int32
String
String
StreamReader
Socket
String
FtpFileInfo[]
String[]
Int64
FtpResponse
FtpResponse
FtpEventHandler
String
String
String
String
String
String
Int32
String
String
Boolean
String
String
Boolean
String
String
String
String
Boolean
String
String
String
String
Boolean
String
String
String
String
String
String
String
String
Int32[]
String
String
Boolean
String
String
String
String
Boolean