29 #ifndef __SSHC_FILESYS_HEADER__ 30 #define __SSHC_FILESYS_HEADER__ 36 #ifdef __ENABLE_MOCANA_SSH_FTP_CLIENT__ 38 #ifndef SFTP_MAX_FILENAME_LENGTH 39 #define SFTP_MAX_FILENAME_LENGTH 64 48 ubyte fileName[SFTP_MAX_FILENAME_LENGTH];
49 ubyte4 fileNameLength;
51 ubyte4 readAccessGroup;
52 ubyte4 writeAccessGroup;
53 ubyte4 executeAccessGroup;
61 sbyte4 fileAccessTime;
62 sbyte4 fileCreationTime;
63 sbyte4 fileModifyTime;
73 #define SFTP_OPEN_FILE_READ_BINARY 1 74 #define SFTP_OPEN_FILE_WRITE_BINARY 2 78 #define SSH_FTP_NO_SUCH_FILE 2 79 #define SSH_FTP_PERMISSION_DENIED 3 80 #define SSH_FTP_FAILURE 4 81 #define SSH_FTP_BAD_MESSAGE 5 82 #define SSH_FTP_NO_CONNECTION 6 83 #define SSH_FTP_CONNECTION_LOST 7 84 #define SSH_FTP_OP_UNSUPPORTED 8 85 #define SSH_FTP_INVALID_HANDLE 9 86 #define SSH_FTP_NO_SUCH_PATH 10 87 #define SSH_FTP_FILE_ALREADY_EXISTS 11 88 #define SSH_FTP_WRITE_PROTECT 12 89 #define SSH_FTP_NO_MEDIA 13 223 sbyte4 (*funcPtrOpenFileClientUpcall) (sbyte4 connectionInstance,
sftpcFileHandleDescr *p_sftpFileHandleDescr);
266 void (*funcPtrStatus) (sbyte4 connectionInstance, ubyte4 statusCode, ubyte *message, ubyte4 messageLength, ubyte *pLanguage, ubyte4 languageLength);
Callback function pointers for NanoSSH Client SFTP operations.
Definition: sshc_filesys.h:111
MOC_EXTERN void SSHC_sftpSetWriteBuffer(sftpcFileHandleDescr *p_sftpFileHandleDescr, sbyte *pBuffer)
Point a write buffer to a chunk of data to be transfered.
NanoSSH Client SFTP file handle descriptor.
Definition: sshc.h:217
MOC_EXTERN void SSHC_sftpSetWriteLocation(sftpcFileHandleDescr *p_sftpFileHandleDescr, sbyte4 location)
Definition: sshc_filesys.h:46
MOC_EXTERN void SSHC_sftpSetWriteBufferSize(sftpcFileHandleDescr *p_sftpFileHandleDescr, sbyte4 bufSize)
Set the size of a write buffer pointing to a chunk of data to be transfered.
MOC_EXTERN ubyte4 SSHC_sftpGetMaxWrite(sbyte4 connectionInstance)