Method | Description | |
---|---|---|
Authenticate ( string userName, string password ) : void |
Authenticates user.
|
|
Connect ( string host, int port ) : void |
Connects to specified host.
|
|
CreateDir ( string dir ) : void |
Creates directory.
|
|
DeleteDir ( string dir ) : void |
Deletes directory.
|
|
DeleteFile ( string file ) : void |
Deletes specified file or directory.
|
|
Disconnect ( ) : void |
Disconnects from active host.
|
|
Dispose ( ) : void |
Clears resources and closes connection if open.
|
|
FTP_Client ( ) : System |
Default connection.
|
|
GetList ( ) : |
Gets directory listing.
|
|
ReceiveFile ( string fileName, Stream storeStream ) : void |
Recieves specified file from server.
|
|
ReceiveFile ( string fileName, string putFileName ) : void |
Recieves specified file from server.
|
|
RenameDir ( string oldDir, string newDir ) : void |
Renames directory.
|
|
RenameFile ( string oldFileName, string newFileName ) : void |
Renames specified file or directory.
|
|
SetCurrentDir ( string dir ) : void |
Sets current directory.
|
|
StoreFile ( Stream getStream, string fileName ) : void |
Stores specified file to server.
|
|
StoreFile ( string getFileName ) : void |
Stores specified file to server.
|
Method | Description | |
---|---|---|
GetDataConnection ( int portA ) : Socket | ||
ParseDirListing ( string list ) : |
Parses server returned directory listing.
|
|
Port ( ) : int | ||
SetTransferMode ( TransferMode mode ) : void |
Sets transfer mode.
|
public Authenticate ( string userName, string password ) : void | ||
userName | string | User name. |
password | string | Password. |
return | void |
public Connect ( string host, int port ) : void | ||
host | string | Host name. |
port | int | Port. |
return | void |
public CreateDir ( string dir ) : void | ||
dir | string | Directory name. |
return | void |
public DeleteDir ( string dir ) : void | ||
dir | string | Name of directory which to delete. |
return | void |
public DeleteFile ( string file ) : void | ||
file | string | File name. |
return | void |
public ReceiveFile ( string fileName, Stream storeStream ) : void | ||
fileName | string | File name of file which to receive. |
storeStream | Stream | Stream where to store file. |
return | void |
public ReceiveFile ( string fileName, string putFileName ) : void | ||
fileName | string | File name of file which to receive. |
putFileName | string | File path+name which to store. |
return | void |
public RenameDir ( string oldDir, string newDir ) : void | ||
oldDir | string | Name of directory which to rename. |
newDir | string | New directory name. |
return | void |
public RenameFile ( string oldFileName, string newFileName ) : void | ||
oldFileName | string | File name of file what to rename. |
newFileName | string | New file name. |
return | void |
public SetCurrentDir ( string dir ) : void | ||
dir | string | Directory. |
return | void |
public StoreFile ( Stream getStream, string fileName ) : void | ||
getStream | Stream | Stream from where to gets file. |
fileName | string | File name to store in server. |
return | void |
public StoreFile ( string getFileName ) : void | ||
getFileName | string | File path+name which to store in server. |
return | void |