Changeset 87066 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp
- Timestamp:
- Dec 9, 2020 2:08:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp
r87065 r87066 283 283 * @returns VBox status code. 284 284 * @param pSrv HTTP server instance to create. 285 * @param puPort Where to return the TCP port number being used on success. 285 * @param puPort Where to return the TCP port number being used on success. Optional. 286 286 */ 287 287 int ShClTransferHttpServerCreate(PSHCLHTTPSERVER pSrv, uint16_t *puPort) 288 288 { 289 289 AssertPtrReturn(pSrv, VERR_INVALID_POINTER); 290 AssertPtrReturn(puPort, VERR_INVALID_POINTER);290 /* puPort is optional. */ 291 291 292 292 /** @todo Try favorite ports first (e.g. 8080, 8000, ...)? */ … … 300 300 { 301 301 uPort = RTRandAdvU32Ex(hRand, 1024, UINT16_MAX); 302 #ifdef DEBUG_andy303 uPort = 8000; /** @todo BUGBUG Remove this! */304 #endif305 302 rc = ShClTransferHttpServerCreateEx(pSrv, (uint32_t)uPort); 306 303 if (RT_SUCCESS(rc)) 307 304 { 308 *puPort = uPort; 305 if (puPort) 306 *puPort = uPort; 309 307 break; 310 308 }
Note:
See TracChangeset
for help on using the changeset viewer.