![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Functions | |
MOC_EXTERN sbyte * | SSHC_sftpReadBuffer (sftpcFileHandleDescr *p_sftpFileHandleDescr) |
Get a pointer to a file's read data buffer. More... | |
MOC_EXTERN sbyte4 | SSHC_sftpReadBufferSize (sftpcFileHandleDescr *p_sftpFileHandleDescr) |
Get the number of bytes in a file's read buffer. More... | |
MOC_EXTERN sbyte4 | SSHC_sftpReadLocation (sftpcFileHandleDescr *p_sftpFileHandleDescr) |
Get a file's current read location. More... | |
MOC_EXTERN sbyte* SSHC_sftpReadBuffer | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr | ) |
This function returns a pointer to a buffer in which data read from a file is stored.
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_sftpReadBufferSize | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr | ) |
This function returns the number of bytes in the specified file descriptor's read buffer.
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_sftpReadLocation | ( | sftpcFileHandleDescr * | p_sftpFileHandleDescr | ) |
This function returns the specified file descriptor's current read location. The read file upcall typically calls this function to track read progress.
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. |