VirtualBox

Changeset 2519 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 7, 2007 6:35:01 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20951
Message:

added API for VRDP multi connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r2333 r2519  
    344344                     "                            [-vrdpport default|<port>]\n"
    345345                     "                            [-vrdpaddress <host>]\n"
    346                      "                            [-vrdpauthtype null|external|guest]\n");
     346                     "                            [-vrdpauthtype null|external|guest]\n"
     347                     "                            [-vrdpmulticon on|off]\n");
    347348        }
    348349        RTPrintf("                            [-usb on|off]\n"
     
    27052706    char *vrdpaddress = NULL;
    27062707    char *vrdpauthtype = NULL;
     2708    char *vrdpmulticon = NULL;
    27072709#endif
    27082710    int   fUsbEnabled = -1;
     
    31223124            i++;
    31233125            vrdpauthtype = argv[i];
     3126        }
     3127        else if (strcmp(argv[i], "-vrdpmulticon") == 0)
     3128        {
     3129            if (argc <= i + 1)
     3130            {
     3131                return errorArgument("Missing argument to '%s'", argv[i]);
     3132            }
     3133            i++;
     3134            vrdpmulticon = argv[i];
    31243135        }
    31253136#endif /* VBOX_VRDP */
     
    38663877            break;
    38673878#ifdef VBOX_VRDP
    3868         if (vrdp || (vrdpport != UINT16_MAX) || vrdpaddress || vrdpauthtype)
     3879        if (vrdp || (vrdpport != UINT16_MAX) || vrdpaddress || vrdpauthtype || vrdpmulticon)
    38693880        {
    38703881            ComPtr<IVRDPServer> vrdpServer;
     
    39153926                    {
    39163927                        errorArgument("Invalid -vrdpauthtype argument '%s'", vrdpauthtype);
     3928                        rc = E_FAIL;
     3929                        break;
     3930                    }
     3931                }
     3932                if (vrdpmulticon)
     3933                {
     3934                    if (strcmp(vrdpmulticon, "on") == 0)
     3935                    {
     3936                        CHECK_ERROR(vrdpServer, COMSETTER(AllowMultiConnection)(true));
     3937                    }
     3938                    else if (strcmp(vrdpmulticon, "off") == 0)
     3939                    {
     3940                        CHECK_ERROR(vrdpServer, COMSETTER(AllowMultiConnection)(false));
     3941                    }
     3942                    else
     3943                    {
     3944                        errorArgument("Invalid -vrdpmulticon argument '%s'", vrdpmulticon);
    39173945                        rc = E_FAIL;
    39183946                        break;
Note: See TracChangeset for help on using the changeset viewer.

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