Changeset 2519 in vbox for trunk/src/VBox
- Timestamp:
- May 7, 2007 6:35:01 AM (18 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r2333 r2519 344 344 " [-vrdpport default|<port>]\n" 345 345 " [-vrdpaddress <host>]\n" 346 " [-vrdpauthtype null|external|guest]\n"); 346 " [-vrdpauthtype null|external|guest]\n" 347 " [-vrdpmulticon on|off]\n"); 347 348 } 348 349 RTPrintf(" [-usb on|off]\n" … … 2705 2706 char *vrdpaddress = NULL; 2706 2707 char *vrdpauthtype = NULL; 2708 char *vrdpmulticon = NULL; 2707 2709 #endif 2708 2710 int fUsbEnabled = -1; … … 3122 3124 i++; 3123 3125 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]; 3124 3135 } 3125 3136 #endif /* VBOX_VRDP */ … … 3866 3877 break; 3867 3878 #ifdef VBOX_VRDP 3868 if (vrdp || (vrdpport != UINT16_MAX) || vrdpaddress || vrdpauthtype )3879 if (vrdp || (vrdpport != UINT16_MAX) || vrdpaddress || vrdpauthtype || vrdpmulticon) 3869 3880 { 3870 3881 ComPtr<IVRDPServer> vrdpServer; … … 3915 3926 { 3916 3927 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); 3917 3945 rc = E_FAIL; 3918 3946 break; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r2511 r2519 7 7 * 8 8 * - out/<platform>/bin/sdk/idl/VirtualBox[_XPCOM].idl, a 9 * pseudo-IDL file that represents the interfaces in IDL;9 * COM/XPCOM interface definition file (IDL) 10 10 * 11 11 * - out/<platform>/bin/sdk/include/VirtualBox[_XPCOM].h, which … … 7182 7182 <interface 7183 7183 name="IVRDPServer" extends="$unknown" 7184 uuid=" 2e88bf9e-2085-421f-9aa2-32088b0378b3"7184 uuid="ed9d31ae-867f-45fc-b727-6740084d1883" 7185 7185 wsmap="struct" 7186 7186 > … … 7203 7203 <attribute name="authTimeout" type="unsigned long"> 7204 7204 <desc>Timeout for guest authentication. Milliseconds.</desc> 7205 </attribute> 7206 7207 <attribute name="allowMultiConnection" type="boolean"> 7208 <desc> 7209 Flag whether multiple simultaneous connections to the VM are permitted. 7210 Note that this will be replaced by a more powerful mechanism in the future. 7211 </desc> 7205 7212 </attribute> 7206 7213 -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r1218 r2519 47 47 mVRDPAddress == that.mVRDPAddress && 48 48 mAuthType == that.mAuthType && 49 mAuthTimeout == that.mAuthTimeout); 49 mAuthTimeout == that.mAuthTimeout && 50 mAllowMultiConnection == that.mAllowMultiConnection); 50 51 } 51 52 … … 55 56 VRDPAuthType_T mAuthType; 56 57 ULONG mAuthTimeout; 58 BOOL mAllowMultiConnection; 57 59 }; 58 60 … … 88 90 STDMETHOD(COMGETTER(AuthTimeout))(ULONG *timeout); 89 91 STDMETHOD(COMSETTER(AuthTimeout))(ULONG timeout); 92 STDMETHOD(COMGETTER(AllowMultiConnection))(BOOL *enabled); 93 STDMETHOD(COMSETTER(AllowMultiConnection))(BOOL enable); 90 94 91 95 // IVRDPServer methods
Note:
See TracChangeset
for help on using the changeset viewer.