C# 클래스 com.Sconit.Utility.SocketFtpHelper

파일 보기 프로젝트 열기: Novthirteen/yfkey-scms

공개 메소드들

메소드 설명
BeginChangeDir ( String dirName, System callback ) : System.IAsyncResult
BeginClose ( System callback ) : System.IAsyncResult
BeginDeleteFile ( String fileName, System callback ) : System.IAsyncResult
BeginDownload ( String remFileName, System.Boolean resume, System callback ) : System.IAsyncResult
BeginDownload ( String remFileName, String locFileName, System.Boolean resume, System callback ) : System.IAsyncResult
BeginDownload ( String remFileName, String locFileName, System callback ) : System.IAsyncResult
BeginDownload ( String remFileName, System callback ) : System.IAsyncResult
BeginGetFileList ( String mask, System callback ) : System.IAsyncResult
BeginGetFileList ( System callback ) : System.IAsyncResult
BeginGetFileSize ( String fileName, System callback ) : System.IAsyncResult
BeginLogin ( System callback ) : System.IAsyncResult
BeginMakeDir ( String dirName, System callback ) : System.IAsyncResult
BeginRemoveDir ( String dirName, System callback ) : System.IAsyncResult
BeginRenameFile ( String oldFileName, String newFileName, System.Boolean overwrite, System callback ) : System.IAsyncResult
BeginUpload ( String fileName, System.Boolean resume, System callback ) : System.IAsyncResult
BeginUpload ( String fileName, System callback ) : System.IAsyncResult
BeginUploadDirectory ( String path, System.Boolean recurse, String mask, System callback ) : System.IAsyncResult
BeginUploadDirectory ( String path, System.Boolean recurse, System callback ) : System.IAsyncResult
ChangeDir ( string dirName ) : void

Change the current working directory on the remote FTP server.

Close ( ) : void

Close the FTP connection.

DeleteFile ( string fileName ) : void

Delete a file from the remote FTP server.

Download ( string remFileName ) : void

Download a file to the Assembly's local directory, keeping the same file name.

Download ( string remFileName, System.Boolean resume ) : void

Download a remote file to the Assembly's local directory, keeping the same file name, and set the resume flag.

Download ( string remFileName, string locFileName ) : void

Download a remote file to a local file name which can include a path. The local file name will be created or overwritten, but the path must exist.

Download ( string remFileName, string locFileName, System.Boolean resume ) : void

Download a remote file to a local file name which can include a path, and set the resume flag. The local file name will be created or overwritten, but the path must exist.

GetFileList ( ) : string[]

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

GetFileList ( string mask ) : string[]

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

GetFileSize ( string fileName ) : long

Return the size of a file.

Login ( ) : void

Login to the remote server.

MakeDir ( string dirName ) : void

Create a directory on the remote FTP server.

RemoveDir ( string dirName ) : void

Delete a directory on the remote FTP server.

RenameFile ( string oldFileName, string newFileName, bool overwrite ) : void

Rename a file on the remote FTP server.

SocketFtpHelper ( ) : System

Default contructor

SocketFtpHelper ( string server, string username, string password ) : System

SocketFtpHelper ( string server, string username, string password, int timeoutSeconds, int port ) : System

Upload ( string fileName ) : void

Upload a file.

Upload ( string fileName, bool resume ) : void

Upload a file and set the resume flag.

UploadDirectory ( string path, bool recurse ) : void

Upload a directory and its file contents

UploadDirectory ( string path, bool recurse, string mask ) : void

Upload a directory and its file contents

비공개 메소드들

메소드 설명
cleanup ( ) : void

Always release those sockets.

createDataSocket ( ) : Socket

when doing data transfers, we need to open another socket for it.

readLine ( ) : string

readResponse ( ) : void

sendCommand ( String command ) : void

메소드 상세

BeginChangeDir() 공개 메소드

public BeginChangeDir ( String dirName, System callback ) : System.IAsyncResult
dirName String
callback System
리턴 System.IAsyncResult

BeginClose() 공개 메소드

public BeginClose ( System callback ) : System.IAsyncResult
callback System
리턴 System.IAsyncResult

BeginDeleteFile() 공개 메소드

public BeginDeleteFile ( String fileName, System callback ) : System.IAsyncResult
fileName String
callback System
리턴 System.IAsyncResult

BeginDownload() 공개 메소드

public BeginDownload ( String remFileName, System.Boolean resume, System callback ) : System.IAsyncResult
remFileName String
resume System.Boolean
callback System
리턴 System.IAsyncResult

BeginDownload() 공개 메소드

public BeginDownload ( String remFileName, String locFileName, System.Boolean resume, System callback ) : System.IAsyncResult
remFileName String
locFileName String
resume System.Boolean
callback System
리턴 System.IAsyncResult

BeginDownload() 공개 메소드

public BeginDownload ( String remFileName, String locFileName, System callback ) : System.IAsyncResult
remFileName String
locFileName String
callback System
리턴 System.IAsyncResult

BeginDownload() 공개 메소드

public BeginDownload ( String remFileName, System callback ) : System.IAsyncResult
remFileName String
callback System
리턴 System.IAsyncResult

BeginGetFileList() 공개 메소드

public BeginGetFileList ( String mask, System callback ) : System.IAsyncResult
mask String
callback System
리턴 System.IAsyncResult

BeginGetFileList() 공개 메소드

public BeginGetFileList ( System callback ) : System.IAsyncResult
callback System
리턴 System.IAsyncResult

BeginGetFileSize() 공개 메소드

public BeginGetFileSize ( String fileName, System callback ) : System.IAsyncResult
fileName String
callback System
리턴 System.IAsyncResult

BeginLogin() 공개 메소드

public BeginLogin ( System callback ) : System.IAsyncResult
callback System
리턴 System.IAsyncResult

BeginMakeDir() 공개 메소드

public BeginMakeDir ( String dirName, System callback ) : System.IAsyncResult
dirName String
callback System
리턴 System.IAsyncResult

BeginRemoveDir() 공개 메소드

public BeginRemoveDir ( String dirName, System callback ) : System.IAsyncResult
dirName String
callback System
리턴 System.IAsyncResult

BeginRenameFile() 공개 메소드

public BeginRenameFile ( String oldFileName, String newFileName, System.Boolean overwrite, System callback ) : System.IAsyncResult
oldFileName String
newFileName String
overwrite System.Boolean
callback System
리턴 System.IAsyncResult

BeginUpload() 공개 메소드

public BeginUpload ( String fileName, System.Boolean resume, System callback ) : System.IAsyncResult
fileName String
resume System.Boolean
callback System
리턴 System.IAsyncResult

BeginUpload() 공개 메소드

public BeginUpload ( String fileName, System callback ) : System.IAsyncResult
fileName String
callback System
리턴 System.IAsyncResult

BeginUploadDirectory() 공개 메소드

public BeginUploadDirectory ( String path, System.Boolean recurse, String mask, System callback ) : System.IAsyncResult
path String
recurse System.Boolean
mask String
callback System
리턴 System.IAsyncResult

BeginUploadDirectory() 공개 메소드

public BeginUploadDirectory ( String path, System.Boolean recurse, System callback ) : System.IAsyncResult
path String
recurse System.Boolean
callback System
리턴 System.IAsyncResult

ChangeDir() 공개 메소드

Change the current working directory on the remote FTP server.
public ChangeDir ( string dirName ) : void
dirName string
리턴 void

Close() 공개 메소드

Close the FTP connection.
public Close ( ) : void
리턴 void

DeleteFile() 공개 메소드

Delete a file from the remote FTP server.
public DeleteFile ( string fileName ) : void
fileName string
리턴 void

Download() 공개 메소드

Download a file to the Assembly's local directory, keeping the same file name.
public Download ( string remFileName ) : void
remFileName string
리턴 void

Download() 공개 메소드

Download a remote file to the Assembly's local directory, keeping the same file name, and set the resume flag.
public Download ( string remFileName, System.Boolean resume ) : void
remFileName string
resume System.Boolean
리턴 void

Download() 공개 메소드

Download a remote file to a local file name which can include a path. The local file name will be created or overwritten, but the path must exist.
public Download ( string remFileName, string locFileName ) : void
remFileName string
locFileName string
리턴 void

Download() 공개 메소드

Download a remote file to a local file name which can include a path, and set the resume flag. The local file name will be created or overwritten, but the path must exist.
public Download ( string remFileName, string locFileName, System.Boolean resume ) : void
remFileName string
locFileName string
resume System.Boolean
리턴 void

GetFileList() 공개 메소드

Return a string array containing the remote directory's file list.
public GetFileList ( ) : string[]
리턴 string[]

GetFileList() 공개 메소드

Return a string array containing the remote directory's file list.
public GetFileList ( string mask ) : string[]
mask string
리턴 string[]

GetFileSize() 공개 메소드

Return the size of a file.
public GetFileSize ( string fileName ) : long
fileName string
리턴 long

Login() 공개 메소드

Login to the remote server.
public Login ( ) : void
리턴 void

MakeDir() 공개 메소드

Create a directory on the remote FTP server.
public MakeDir ( string dirName ) : void
dirName string
리턴 void

RemoveDir() 공개 메소드

Delete a directory on the remote FTP server.
public RemoveDir ( string dirName ) : void
dirName string
리턴 void

RenameFile() 공개 메소드

Rename a file on the remote FTP server.
public RenameFile ( string oldFileName, string newFileName, bool overwrite ) : void
oldFileName string
newFileName string
overwrite bool setting to false will throw exception if it exists
리턴 void

SocketFtpHelper() 공개 메소드

Default contructor
public SocketFtpHelper ( ) : System
리턴 System

SocketFtpHelper() 공개 메소드

public SocketFtpHelper ( string server, string username, string password ) : System
server string
username string
password string
리턴 System

SocketFtpHelper() 공개 메소드

public SocketFtpHelper ( string server, string username, string password, int timeoutSeconds, int port ) : System
server string
username string
password string
timeoutSeconds int
port int
리턴 System

Upload() 공개 메소드

Upload a file.
public Upload ( string fileName ) : void
fileName string
리턴 void

Upload() 공개 메소드

Upload a file and set the resume flag.
public Upload ( string fileName, bool resume ) : void
fileName string
resume bool
리턴 void

UploadDirectory() 공개 메소드

Upload a directory and its file contents
public UploadDirectory ( string path, bool recurse ) : void
path string
recurse bool Whether to recurse sub directories
리턴 void

UploadDirectory() 공개 메소드

Upload a directory and its file contents
public UploadDirectory ( string path, bool recurse, string mask ) : void
path string
recurse bool Whether to recurse sub directories
mask string Only upload files of the given mask - everything is '*.*'
리턴 void