![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Functions | |
MOC_EXTERN void | SSH_sftpNumBytesRead (void *sftpInternelDescr, sbyte4 numBytesRead) |
Set an sftp file descriptor's $numBytesRead value to the number of bytes read from the incoming socket. More... | |
MOC_EXTERN sbyte * | SSH_sftpReadBuffer (void *sftpInternelDescr) |
Get a pointer to a buffer containing a file's read data. More... | |
MOC_EXTERN sbyte4 | SSH_sftpReadBufferSize (void *sftpInternelDescr) |
Get the number of read bytes a client is requesting. More... | |
MOC_EXTERN sbyte4 | SSH_sftpReadLocation (void *sftpInternelDescr) |
Get a file's read byte position. More... | |
MOC_EXTERN sbyte * | SSH_sftpWriteBuffer (void *sftpInternelDescr) |
Get a pointer to a buffer (received from an SFTP client) containing data to write to a file. More... | |
MOC_EXTERN sbyte4 | SSH_sftpWriteBufferSize (void *sftpInternelDescr) |
Get the number of bytes written to a file by an SFTP write upcall handler. More... | |
MOC_EXTERN sbyte4 | SSH_sftpWriteLocation (void *sftpInternelDescr) |
Get a file's write byte position. More... | |
MOC_EXTERN void SSH_sftpNumBytesRead | ( | void * | sftpInternelDescr, |
sbyte4 | numBytesRead | ||
) |
This function sets an sftp file descriptor's numBytesRead
value to the number of bytes read from the incoming socket.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
numBytesRead | Number of bytes read. |
ssh_ftp.c
MOC_EXTERN sbyte* SSH_sftpReadBuffer | ( | void * | sftpInternelDescr | ) |
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_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c
MOC_EXTERN sbyte4 SSH_sftpReadBufferSize | ( | void * | sftpInternelDescr | ) |
This function returns the number of read bytes a client is requesting (or the maximum size of the read buffer if the buffer is too small for the number of bytes requested).
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c
MOC_EXTERN sbyte4 SSH_sftpReadLocation | ( | void * | sftpInternelDescr | ) |
This function (typically used within an SFTP read file upcall) returns a file's read byte position.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c
MOC_EXTERN sbyte* SSH_sftpWriteBuffer | ( | void * | sftpInternelDescr | ) |
This function returns a pointer to a buffer (received from an SFTP client) containing data to write to a file.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c
MOC_EXTERN sbyte4 SSH_sftpWriteBufferSize | ( | void * | sftpInternelDescr | ) |
This function returns the number of bytes written to a file by an SFTP write upcall handler.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c
MOC_EXTERN sbyte4 SSH_sftpWriteLocation | ( | void * | sftpInternelDescr | ) |
This function (typically used within an SFTP write file upcall) returns a file's write byte position.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__
__ENABLE_MOCANA_SSH_FTP_SERVER__
sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
ssh_ftp.c