VirtualBox

Changeset 82770 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 15, 2020 2:34:38 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/FTP: More work on data connection handling. bugref:9646

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r82665 r82770  
    27162716/** FTP initialization failed. */
    27172717#define VERR_FTP_INIT_FAILED                                    (-26401)
     2718/** Data connection not found. */
     2719#define VERR_FTP_DATA_CONN_INIT_FAILED                          (-26402)
     2720/** Data connection not found. */
     2721#define VERR_FTP_DATA_CONN_NOT_FOUND                            (-26403)
     2722/** Data connection limit has been reached. */
     2723#define VERR_FTP_DATA_CONN_LIMIT_REACHED                        (-26404)
     2724/** Client not found. */
     2725#define VERR_FTP_CLIENT_NOT_FOUND                               (-26405)
     2726/** Client limit has been reached. */
     2727#define VERR_FTP_CLIENT_LIMIT_REACHED                           (-26406)
    27182728/** @} */
    27192729
  • trunk/include/iprt/ftp.h

    r82733 r82770  
    134134    /** Closing data connection. */
    135135    RTFTPSERVER_REPLY_CLOSING_DATA_CONN              = 226,
     136    /** "PATHNAME" ok (created / exists). */
     137    RTFTPSERVER_REPLY_PATHNAME_OK                    = 257,
    136138    /** User logged in, proceed. */
    137139    RTFTPSERVER_REPLY_LOGGED_IN_PROCEED              = 230,
     
    165167typedef struct RTFTPSERVERCLIENTSTATE
    166168{
    167     /** User name. */
     169    /** Authenticated user (name). If NULL, no user has been logged in (yet). */
    168170    char                       *pszUser;
    169171    /** Number of failed login attempts. */
     
    300302     * Callback which gets invoked when the client wants to list a directory or file.
    301303     *
     304     * @returns VBox status code. VINF_EOF if listing is complete.
    302305     * @param   pData           Pointer to generic callback data.
    303306     * @param   pcszPath        Path of file / directory to list. Optional. If NULL, the current directory will be listed.
    304      * @param   ppvData         Where to return the listing data. Must be free'd by the caller.
    305      * @param   pcbvData        Where to return the listing data size in bytes.
    306      * @returns VBox status code.
    307      */
    308     DECLCALLBACKMEMBER(int,  pfnOnList)(PRTFTPCALLBACKDATA pData, const char *pcszPath, void **ppvData, size_t *pcbData);
     307     * @param   pvData          Buffer where to return the listing data.
     308     * @param   cbData          Size (in bytes) of buffer where to return the listing data.
     309     * @param   pcbRead         How many bytes were read.
     310     */
     311    DECLCALLBACKMEMBER(int,  pfnOnList)(PRTFTPCALLBACKDATA pData, const char *pcszPath, void *pvData, size_t cbData, size_t *pcbRead);
    309312} RTFTPSERVERCALLBACKS;
    310313/** Pointer to a FTP server callback data table. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette