![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Functions | |
MOC_EXTERN void * | SSHC_sftpGetCookie (sftpcFileHandleDescr *p_sftpFileHandleDescr) |
Get a file's cookie value. More... | |
MOC_EXTERN sbyte4 | SSHC_sftpRequestStatusCode (sftpcFileHandleDescr *p_sftpFileHandleDescr) |
Get a file's SFTP operation status. More... | |
MOC_EXTERN void | SSHC_sftpSetCookie (sftpcFileHandleDescr *p_sftpFileHandleDescr, void *sftpCookie) |
Set a file's cookie value (custom information). More... | |
MOC_EXTERN void* SSHC_sftpGetCookie | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr | ) |
This function returns the cookie value of the specified file handle descriptor.
(changes to return type)
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_CLIENT__
__ENABLE_MOCANA_SSH_FTP_CLIENT__
p_sftpFileHandleDescr | Pointer to file handle descriptor. |
MOC_EXTERN sbyte4 SSHC_sftpRequestStatusCode | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr | ) |
This function returns the specified file's SFTP operation status (see sshc_ftp_status_codes).
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_CLIENT__
__ENABLE_MOCANA_SSH_FTP_CLIENT__
p_sftpFileHandleDescr | Pointer to file handle descriptor. |
MOC_EXTERN void SSHC_sftpSetCookie | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr, |
void * | sftpCookie | ||
) |
This function assigns the specified cookie value (custom information) to the specified file handle descriptor's cookie field.
(changes to sftpCookie arg type)
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_CLIENT__
__ENABLE_MOCANA_SSH_FTP_CLIENT__
p_sftpFileHandleDescr | Pointer to file handle descriptor. |
sftpCookie | Value to assign to the cookie. |