VirtualBox

Changeset 23643 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Oct 9, 2009 12:23:32 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53341
Message:

VRDP port range API.

File:
1 edited

Legend:

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

    r23249 r23643  
    509509
    510510    STDMETHOD(OnVRDPServerChange)()
     511    {
     512        return S_OK;
     513    }
     514
     515    STDMETHOD(OnRemoteDisplayInfoChange)()
    511516    {
    512517        return S_OK;
     
    865870    char *fdaFile   = NULL;
    866871#ifdef VBOX_WITH_VRDP
    867     int portVRDP = ~0;
     872    char *portVRDP = NULL;
    868873#endif
    869874    bool fDiscardState = false;
     
    12731278        {
    12741279            // start with the standard VRDP port
    1275             portVRDP = 0;
     1280            portVRDP = "0";
    12761281
    12771282            // is there another argument
    12781283            if (argc > (curArg + 1))
    12791284            {
    1280                 // check if the next argument is a number
    1281                 int port = atoi(argv[curArg + 1]);
    1282                 if (port > 0)
    1283                 {
    1284                     curArg++;
    1285                     portVRDP = port;
    1286                     LogFlow(("Using non standard VRDP port %d\n", portVRDP));
    1287                 }
     1285                curArg++;
     1286                portVRDP = argv[curArg];
     1287                LogFlow(("Using non standard VRDP port %s\n", portVRDP));
    12881288            }
    12891289        }
     
    18381838
    18391839#ifdef VBOX_WITH_VRDP
    1840     if (portVRDP != ~0)
     1840    if (portVRDP)
    18411841    {
    18421842        rc = gMachine->COMGETTER(VRDPServer)(gVrdpServer.asOutParam());
     
    18471847            if (portVRDP > 0)
    18481848            {
    1849                 rc = gVrdpServer->COMSETTER(Port)(portVRDP);
     1849                Bstr bstr = portVRDP;
     1850                rc = gVrdpServer->COMSETTER(Ports)(bstr);
    18501851                if (rc != S_OK)
    18511852                {
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