Changeset 58305 in vbox for trunk/src/VBox
- Timestamp:
- Oct 18, 2015 11:41:37 PM (9 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp
r57741 r58305 195 195 VBOXTRAY_IPC_PIPE_PREFIX, pszUserName)) 196 196 { 197 rc = RTLocalIpcServerCreate(&pCtx->hServer, szPipeName, 198 RTLOCALIPC_FLAGS_MULTI_SESSION); 197 rc = RTLocalIpcServerCreate(&pCtx->hServer, szPipeName, 0 /*fFlags*/); 199 198 if (RT_SUCCESS(rc)) 200 199 { -
trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp
r58302 r58305 207 207 AssertPtrReturn(phServer, VERR_INVALID_POINTER); 208 208 *phServer = NIL_RTLOCALIPCSERVER; 209 210 209 AssertReturn(!(fFlags & ~RTLOCALIPC_FLAGS_VALID_MASK), VERR_INVALID_FLAGS); 211 212 210 int rc = rtLocalIpcPosixValidateName(pszName, RT_BOOL(fFlags & RTLOCALIPC_FLAGS_NATIVE_NAME)); 213 211 if (RT_SUCCESS(rc)) … … 248 246 if (RT_SUCCESS(rc)) 249 247 { 250 rc = rtSocketListen(pThis->hSocket, pThis->fFlags & RTLOCALIPC_FLAGS_MULTI_SESSION ? 10 : 0);248 rc = rtSocketListen(pThis->hSocket, 16); 251 249 if (RT_SUCCESS(rc)) 252 250 { -
trunk/src/VBox/Runtime/r3/win/localipc-win.cpp
r58300 r58305 392 392 */ 393 393 AssertPtrReturn(phServer, VERR_INVALID_POINTER); 394 394 *phServer = NIL_RTLOCALIPCSERVER; 395 395 AssertReturn(!(fFlags & ~RTLOCALIPC_FLAGS_VALID_MASK), VERR_INVALID_FLAGS); 396 AssertReturn(fFlags & RTLOCALIPC_FLAGS_MULTI_SESSION, VERR_NOT_IMPLEMENTED); /** @todo Implement !RTLOCALIPC_FLAGS_MULTI_SESSION */397 398 396 size_t cwcFullName; 399 397 int rc = rtLocalIpcWinValidateName(pszName, &cwcFullName, RT_BOOL(fFlags & RTLOCALIPC_FLAGS_NATIVE_NAME)); -
trunk/src/VBox/Runtime/testcase/tstRTLocalIpc.cpp
r58304 r58305 61 61 RTLOCALIPCSERVER hIpcServer; 62 62 int rc; 63 RTTESTI_CHECK_RC(rc = RTLocalIpcServerCreate(&hIpcServer, NULL, RTLOCALIPC_FLAGS_MULTI_SESSION), VERR_INVALID_POINTER);63 RTTESTI_CHECK_RC(rc = RTLocalIpcServerCreate(&hIpcServer, NULL, 0), VERR_INVALID_POINTER); 64 64 if (RT_SUCCESS(rc)) RTLocalIpcServerDestroy(hIpcServer); 65 RTTESTI_CHECK_RC(rc = RTLocalIpcServerCreate(&hIpcServer, "", RTLOCALIPC_FLAGS_MULTI_SESSION), VERR_INVALID_NAME);65 RTTESTI_CHECK_RC(rc = RTLocalIpcServerCreate(&hIpcServer, "", 0), VERR_INVALID_NAME); 66 66 if (RT_SUCCESS(rc)) RTLocalIpcServerDestroy(hIpcServer); 67 67 RTTESTI_CHECK_RC(rc = RTLocalIpcServerCreate(&hIpcServer, "BasicTest", 1234 /* Invalid flags */), VERR_INVALID_FLAGS); … … 72 72 73 73 /* Basic server creation / destruction. */ 74 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "BasicTest", RTLOCALIPC_FLAGS_MULTI_SESSION), VINF_SUCCESS);74 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "BasicTest", 0), VINF_SUCCESS); 75 75 RTTESTI_CHECK_RC(RTLocalIpcServerCancel(hIpcServer), VINF_SUCCESS); 76 76 RTTESTI_CHECK_RC(RTLocalIpcServerDestroy(hIpcServer), VINF_OBJECT_DESTROYED); … … 157 157 */ 158 158 RTLOCALIPCSERVER hIpcServer; 159 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionConnection", RTLOCALIPC_FLAGS_MULTI_SESSION), 160 VINF_SUCCESS); 159 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionConnection", 0), VINF_SUCCESS); 161 160 162 161 /* … … 331 330 */ 332 331 RTLOCALIPCSERVER hIpcServer; 333 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionWait", RTLOCALIPC_FLAGS_MULTI_SESSION), 334 VINF_SUCCESS); 332 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionWait", 0), VINF_SUCCESS); 335 333 336 334 /* … … 610 608 */ 611 609 RTLOCALIPCSERVER hIpcServer; 612 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionData", RTLOCALIPC_FLAGS_MULTI_SESSION), 613 VINF_SUCCESS); 610 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionData", 0), VINF_SUCCESS); 614 611 615 612 /* … … 809 806 */ 810 807 RTLOCALIPCSERVER hIpcServer; 811 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionPerf", RTLOCALIPC_FLAGS_MULTI_SESSION), 812 VINF_SUCCESS); 808 RTTESTI_CHECK_RC_RETV(RTLocalIpcServerCreate(&hIpcServer, "tstRTLocalIpcSessionPerf", 0), VINF_SUCCESS); 813 809 814 810 /*
Note:
See TracChangeset
for help on using the changeset viewer.