Changeset 82727 in vbox for trunk/include/iprt
- Timestamp:
- Jan 13, 2020 2:55:50 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/ftp.h
r82723 r82727 103 103 /** Invalid reply type, do not use. */ 104 104 RTFTPSERVER_REPLY_INVALID = 0, 105 /** Command okay. */ 106 RTFTPSERVER_REPLY_OKAY = 200, 105 107 /** Command not implemented, superfluous at this site. */ 106 108 RTFTPSERVER_REPLY_ERROR_CMD_NOT_IMPL_SUPERFLUOUS = 202, 107 /** Command okay. */108 RTFTPSERVER_REPLY_OKAY = 200,109 109 /** Service ready for new user. */ 110 110 RTFTPSERVER_REPLY_READY_FOR_NEW_USER = 220, … … 117 117 /** User name okay, need password. */ 118 118 RTFTPSERVER_REPLY_USERNAME_OKAY_NEED_PASSWORD = 331, 119 /** Can't open data connection. */ 120 RTFTPSERVER_REPLY_CANT_OPEN_DATA_CONN = 425, 119 121 /** Connection closed; transfer aborted. */ 120 122 RTFTPSERVER_REPLY_CONN_CLOSED_TRANSFER_ABORTED = 426, … … 143 145 { 144 146 /** User name. */ 145 char *pszUser;147 char *pszUser; 146 148 /** Number of failed login attempts. */ 147 uint8_t cFailedLoginAttempts;149 uint8_t cFailedLoginAttempts; 148 150 /** Timestamp (in ms) of last command issued by the client. */ 149 uint64_t tsLastCmdMs; 151 uint64_t tsLastCmdMs; 152 /** Current set data type. */ 153 RTFTPSERVER_DATA_TYPE enmDataType; 150 154 } RTFTPSERVERCLIENTSTATE; 151 155 /** Pointer to a FTP server client state. */ … … 202 206 */ 203 207 DECLCALLBACKMEMBER(int, pfnOnUserDisconnect)(PRTFTPCALLBACKDATA pData); 208 DECLCALLBACKMEMBER(int, pfnOnFileOpen)(PRTFTPCALLBACKDATA pData, const char *pcszPath, uint32_t fMode, void **ppvHandle); 209 DECLCALLBACKMEMBER(int, pfnOnFileRead)(PRTFTPCALLBACKDATA pData, void *pvHandle, void *pvBuf, size_t cbToRead, size_t *pcbRead); 210 DECLCALLBACKMEMBER(int, pfnOnFileClose)(PRTFTPCALLBACKDATA pData, void *pvHandle); 204 211 /** 205 212 * Callback which gets invoked when the client wants to retrieve the size of a specific file. … … 216 223 * @param pData Pointer to generic callback data. 217 224 * @param pcszPath Path of file / directory to "stat". Optional. If NULL, the current directory will be used. 218 * @param pFsObjInfo Where to return the RTFSOBJINFO data on success. 225 * @param pFsObjInfo Where to return the RTFSOBJINFO data on success. Optional. 219 226 * @returns VBox status code. 220 227 */
Note:
See TracChangeset
for help on using the changeset viewer.