Changeset 62673 in vbox for trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecServiceTcp.cpp
- Timestamp:
- Jul 29, 2016 11:04:35 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109246
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/TestExecServ/TestExecServiceTcp.cpp
r62484 r62673 126 126 * @returns NIL_RTSOCKET if consumed, other wise hTcpClient. 127 127 * @param hTcpClient The client socket. 128 * @param fFromServer Set if server type connection. 129 */ 130 static RTSOCKET txsTcpSetClient(RTSOCKET hTcpClient, bool fFromServer) 128 */ 129 static RTSOCKET txsTcpSetClient(RTSOCKET hTcpClient) 131 130 { 132 131 RTCritSectEnter(&g_TcpCritSect); … … 159 158 if (RT_SUCCESS(rc)) 160 159 { 161 hTcpClient = txsTcpSetClient(hTcpClient , true /*fFromServer*/);160 hTcpClient = txsTcpSetClient(hTcpClient); 162 161 RTTcpServerDisconnectClient2(hTcpClient); 163 162 } 164 163 164 RT_NOREF2(hSelf, pvUser); 165 165 return rc; 166 166 } … … 192 192 static DECLCALLBACK(int) txsTcpClientConnectThread(RTTHREAD hSelf, void *pvUser) 193 193 { 194 RT_NOREF1(pvUser); 195 194 196 for (;;) 195 197 { … … 209 211 if (RT_SUCCESS(rc)) 210 212 { 211 hTcpClient = txsTcpSetClient(hTcpClient , true /*fFromServer*/);213 hTcpClient = txsTcpSetClient(hTcpClient); 212 214 RTTcpClientCloseEx(hTcpClient, true /* fGracefulShutdown*/); 213 215 break;
Note:
See TracChangeset
for help on using the changeset viewer.