![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Variables | |
| sbyte4(* | sftpSettings::funcPtrCloseFileUpcall )(sbyte4 connectionInstance, void *sftpInternelDescr) |
| Respond to a file close request. More... | |
| sbyte4(* | sftpSettings::funcPtrOpenFileUpcall )(sbyte4 connectionInstance, void *sftpInternelDescr, sbyte *pLongDirectoryName, sbyte *pFilename, sbyte4 flags) |
| Respond to a file open request. More... | |
| sbyte4(* | sftpSettings::funcPtrReadFileUpcall )(sbyte4 connectionInstance, void *sftpInternelDescr) |
| Respond to a file download request. More... | |
| sbyte4(* | sftpSettings::funcPtrWriteFileUpcall )(sbyte4 connectionInstance, void *sftpInternelDescr) |
| Respond to a file upload request. More... | |
| sbyte4(* sftpSettings::funcPtrCloseFileUpcall) (sbyte4 connectionInstance, void *sftpInternelDescr) |
This callback function is invoked when a user is finished viewing, modifying, or adding a file.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_FTP_SERVER__ | connectionInstance | Connection instance returned from SSH_acceptConnection() or SSH_ASYNC_acceptConnection(). |
| sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.| sbyte4(* sftpSettings::funcPtrOpenFileUpcall) (sbyte4 connectionInstance, void *sftpInternelDescr, sbyte *pLongDirectoryName, sbyte *pFilename, sbyte4 flags) |
This callback function is invoked when a user issues a file open request (for either reading or writing).
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_FTP_SERVER__ | connectionInstance | Connection instance returned from SSH_acceptConnection() or SSH_ASYNC_acceptConnection(). |
| sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
| pLongDirectoryName | Pointer to string specifying full directory path of the file. |
| pFilename | Pointer to string specifying the name of the file to open. |
| flags | Combination of bit flag constant(s) specifying the file's permissions (SFTP_OPEN_FILE_READ_BINARY and/or SFTP_OPEN_FILE_WRITE_BINARY). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.| sbyte4(* sftpSettings::funcPtrReadFileUpcall) (sbyte4 connectionInstance, void *sftpInternelDescr) |
This callback function is invoked when a client downloads (requests) a file by using get.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_FTP_SERVER__ | connectionInstance | Connection instance returned from SSH_acceptConnection() or SSH_ASYNC_acceptConnection(). |
| sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.| sbyte4(* sftpSettings::funcPtrWriteFileUpcall) (sbyte4 connectionInstance, void *sftpInternelDescr) |
This callback function is invoked when a client uploads a file by using put.
To enable this function, the following flag must be defined in moptions.h:
__ENABLE_MOCANA_SSH_FTP_SERVER__ | connectionInstance | Connection instance returned from SSH_acceptConnection() or SSH_ASYNC_acceptConnection(). |
| sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.