Changeset 23998 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Oct 22, 2009 6:34:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r23643 r23998 116 116 refcnt = 0; 117 117 #endif 118 mLastVRDPPort = -1; 118 119 } 119 120 … … 210 211 LONG port; 211 212 info->COMGETTER(Port)(&port); 212 if (port != 0) 213 RTPrintf("Listening on port %d\n", port); 214 else 215 RTPrintf("VRDP server failed to start\n"); 213 if (port != mLastVRDPPort) 214 { 215 if (port == -1) 216 RTPrintf("VRDP server is inactive.\n"); 217 else if (port == 0) 218 RTPrintf("VRDP server failed to start.\n"); 219 else 220 RTPrintf("Listening on port %d.\n", port); 221 222 mLastVRDPPort = port; 223 } 216 224 } 217 225 } … … 276 284 long refcnt; 277 285 #endif 286 long mLastVRDPPort; 278 287 }; 279 288 … … 351 360 " -v, -vrdp, --vrdp on|off|config Enable (default) or disable the VRDP\n" 352 361 " server or don't change the setting\n" 353 " -p, -vrdpport, --vrdpport <port> Port number the VRDP server will bind\n" 354 " to\n" 362 " -p, -vrdpport, --vrdpport <ports> Comma-separated list of ports the VRDP\n" 363 " server can bind to. Use a dash between\n" 364 " two port numbers to specify a range\n" 355 365 " -a, -vrdpaddress, --vrdpaddress <ip> Interface IP the VRDP will bind to \n" 356 366 #endif
Note:
See TracChangeset
for help on using the changeset viewer.