Ftp ServerEx
Extended MAVLink FTP server microservice. Provides high-level methods for file and directory operations over MAVLink FTP. It is a base implementation of the MAVLink FTP server with sessions.
Use case
This class is just an implementation of delegates from the base FtpServer. You can call methods manually, but it is not the default way of using FtpServerEx.
Api
MavlinkFtpServerExConfig
Configuration for the extended MAVLink FTP server.
Property | Type | Default | Description |
|---|---|---|---|
|
|
| Gets or sets the root directory for the FTP server. All file operations will be relative to this directory. |
IFtpServerEx
Extended MAVLink FTP server microservice.
Property | Type | Description |
|---|---|---|
|
| Gets the base FTP server instance. |
Method | Return Type | Description |
|---|---|---|
|
| Opens a file for reading. |
|
| Opens a file for writing. |
|
| Reads data from a file using a read request. |
|
| Renames a file or directory. |
|
| Terminates a specific FTP session. |
|
| Resets all active FTP sessions. |
|
| Lists the contents of a directory. |
|
| Creates a new directory. |
|
| Creates a new file. |
|
| Removes a file. |
|
| Removes a directory. |
|
| Calculates the CRC32 checksum of a file. |
|
| Truncates a file to a specific length. |
|
| Performs a burst read from a file. |
|
| Writes data to a file. |
IFtpServerEx.OpenFileRead
Parameter | Type | Description |
|---|---|---|
|
| The path of the file to open. |
|
| Optional cancel token argument. |
IFtpServerEx.OpenFileWrite
Parameter | Type | Description |
|---|---|---|
|
| The path of the file to open. |
|
| Optional cancel token argument. |
IFtpServerEx.FileRead
Parameter | Type | Description |
|---|---|---|
|
| The read request containing session and offset information. |
|
| The buffer to store the read data. |
|
| Optional cancel token argument. |
IFtpServerEx.Rename
Parameter | Type | Description |
|---|---|---|
|
| The current path of the file or directory. |
|
| The new path of the file or directory. |
|
| Optional cancel token argument. |
IFtpServerEx.TerminateSession
Parameter | Type | Description |
|---|---|---|
|
| The session ID to terminate. |
|
| Optional cancel token argument. |
IFtpServerEx.ResetSessions
Parameter | Type | Description |
|---|---|---|
|
| Optional cancel token argument. |
IFtpServerEx.ListDirectory
Parameter | Type | Description |
|---|---|---|
|
| The path of the directory to list. |
|
| The offset within the directory listing. |
|
| The buffer to store the directory listing as characters. |
|
| Optional cancel token argument. |
IFtpServerEx.CreateDirectory
Parameter | Type | Description |
|---|---|---|
|
| The path of the directory to create. |
|
| Optional cancel token argument. |
IFtpServerEx.CreateFile
Parameter | Type | Description |
|---|---|---|
|
| The path of the file to create. |
|
| Optional cancel token argument. |
IFtpServerEx.RemoveFile
Parameter | Type | Description |
|---|---|---|
|
| The path of the file to remove. |
|
| Optional cancel token argument. |
IFtpServerEx.RemoveDirectory
Parameter | Type | Description |
|---|---|---|
|
| The path of the directory to remove. |
|
| Optional cancel token argument. |
IFtpServerEx.CalcFileCrc32
Parameter | Type | Description |
|---|---|---|
|
| The path of the file. |
|
| Optional cancel token argument. |
IFtpServerEx.TruncateFile
Parameter | Type | Description |
|---|---|---|
|
| The truncate request containing path and length information. |
|
| Optional cancel token argument. |
IFtpServerEx.BurstReadFile
Parameter | Type | Description |
|---|---|---|
|
| The read request containing session and offset information. |
|
| The buffer to store the read data. |
|
| Optional cancel token argument. |
IFtpServerEx.WriteFile
Parameter | Type | Description |
|---|---|---|
|
| The write request containing session and offset information. |
|
| The buffer containing the data to write. |
|
| Optional cancel token argument. |