VirtualBox

Changeset 35939 in vbox for trunk/include/VBox/RemoteDesktop


Ignore:
Timestamp:
Feb 11, 2011 10:25:18 AM (14 years ago)
Author:
vboxsync
Message:

VRDE.h: comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/RemoteDesktop/VRDE.h

    r35105 r35939  
    3838RT_C_DECLS_BEGIN
    3939
    40 /* Forward declaration of the VRDE server instance handle. */
     40/* Forward declaration of the VRDE server instance handle.
     41 * This is an opaque pointer for VirtualBox.
     42 * The VRDE library uses it as a pointer to some internal data.
     43 */
    4144#ifdef __cplusplus
    4245class VRDEServer;
     
    647650     * Send a update.
    648651     *
     652     * Note: the server must access the framebuffer bitmap only when VRDEUpdate is called.
     653     *       If the have to access the bitmap later or from another thread, then
     654     *       it must used an intermediate buffer and copy the framebuffer data to the
     655     *       intermediate buffer in VRDEUpdate.
     656     *
    649657     * @param hServer   Handle of VRDE server instance.
    650658     * @param uScreenId The screen index.
    651      * @param pvUpdate  Pointer to VBoxGuest.h::VRDEORDERHDR structure with extra data.
     659     * @param pvUpdate  Pointer to VRDEOrders.h::VRDEORDERHDR structure with extra data.
    652660     * @param cbUpdate  Size of the update data.
    653661     */
     
    814822     * Send a update.
    815823     *
     824     * Note: the server must access the framebuffer bitmap only when VRDEUpdate is called.
     825     *       If the have to access the bitmap later or from another thread, then
     826     *       it must used an intermediate buffer and copy the framebuffer data to the
     827     *       intermediate buffer in VRDEUpdate.
     828     *
    816829     * @param hServer   Handle of VRDE server instance.
    817830     * @param uScreenId The screen index.
    818      * @param pvUpdate  Pointer to VBoxGuest.h::VRDEORDERHDR structure with extra data.
     831     * @param pvUpdate  Pointer to VRDEOrders.h::VRDEORDERHDR structure with extra data.
    819832     * @param cbUpdate  Size of the update data.
    820833     */
     
    961974
    962975    /*
    963      * Same as version 2.
     976     * Same as version 2. See comment in VRDEENTRYPOINTS_2.
    964977     */
    965978
     
    10551068
    10561069
    1057 #define VRDE_QP_NETWORK_PORT      (1)
    1058 #define VRDE_QP_NETWORK_ADDRESS   (2)
    1059 #define VRDE_QP_NUMBER_MONITORS   (3)
    1060 #define VRDE_QP_NETWORK_PORT_RANGE (4)
     1070/* Indexes for VRDECallbackProperty.
     1071 * *_QP_* queries a property.
     1072 * *_SP_* sets a property.
     1073 */
     1074#define VRDE_QP_NETWORK_PORT      (1) /* Obsolete. Use VRDE_QP_NETWORK_PORT_RANGE instead. */
     1075#define VRDE_QP_NETWORK_ADDRESS   (2) /* UTF8 string. Host network interface IP address to bind to. */
     1076#define VRDE_QP_NUMBER_MONITORS   (3) /* 32 bit. Number of monitors in the VM. */
     1077#define VRDE_QP_NETWORK_PORT_RANGE (4) /* UTF8 string. List of ports. The server must bind to one of
     1078                                        * free ports from the list. Example: "3000,3010-3012,4000",
     1079                                        * which tells the server to bind to either of ports:
     1080                                        * 3000, 3010, 3011, 3012, 4000.
     1081                                        */
    10611082#ifdef VBOX_WITH_VRDP_VIDEO_CHANNEL
    10621083#define VRDE_QP_VIDEO_CHANNEL         (5)
     
    10641085#define VRDE_QP_VIDEO_CHANNEL_SUNFLSH (7)
    10651086#endif /* VBOX_WITH_VRDP_VIDEO_CHANNEL */
    1066 #define VRDE_QP_FEATURE           (8)
     1087#define VRDE_QP_FEATURE           (8) /* VRDEFEATURE structure. Generic interface to query named VRDE properties. */
    10671088
    10681089#define VRDE_SP_BASE 0x1000
    1069 #define VRDE_SP_NETWORK_BIND_PORT (VRDE_SP_BASE + 1)
     1090#define VRDE_SP_NETWORK_BIND_PORT (VRDE_SP_BASE + 1) /* 32 bit. The port number actually used by the server.
     1091                                                      * If VRDECreateServer fails, it should set the port to 0.
     1092                                                      * If VRDECreateServer succeeds, then the port must be set
     1093                                                      * in VRDEEnableConnections to the actually used value.
     1094                                                      * VRDEDestroy must set the port to 0xFFFFFFFF.
     1095                                                      */
    10701096
    10711097#pragma pack(1)
     
    11651191                                                     const char *pszDomain));
    11661192
    1167     /* The client has been successfully connected.
     1193    /* The client has been successfully connected. That is logon was successful and the
     1194     * remote desktop protocol connection completely established.
    11681195     *
    11691196     * @param pvCallback      The callback specific pointer.
     
    12501277                                                           VRDEFRAMEBUFFERINFO *pInfo));
    12511278
    1252     /* The framebuffer is locked.
     1279    /* Request the exclusive access to the framebuffer bitmap.
     1280     * Currently not used because VirtualBox makes sure that the framebuffer is available
     1281     * when VRDEUpdate is called.
    12531282     *
    12541283     * @param pvCallback      The callback specific pointer.
     
    12581287                                                          unsigned uScreenId));
    12591288
    1260     /* The framebuffer is unlocked.
     1289    /* Release the exclusive access to the framebuffer bitmap.
     1290     * Currently not used because VirtualBox makes sure that the framebuffer is available
     1291     * when VRDEUpdate is called.
    12611292     *
    12621293     * @param pvCallback      The callback specific pointer.
     
    13031334
    13041335    /*
    1305      * Same as in version 2.
     1336     * Same as in version 1 and 2. See comment in VRDECALLBACKS_1.
    13061337     */
    13071338    DECLR3CALLBACKMEMBER(int, VRDECallbackProperty,(void *pvCallback,
     
    14191450 * List of names of the VRDE properties, which are recognized by the VRDE.
    14201451 *
     1452 * For example VRDESupportedProperties should return gapszProperties declared as:
     1453 *
     1454 * static const char * const gapszProperties[] =
     1455 * {
     1456 *   "TCP/Ports",
     1457 *   "TCP/Address",
     1458 *   NULL
     1459 * };
     1460 *
    14211461 * @returns pointer to array of pointers to name strings (UTF8).
    14221462 */
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