Changeset 32818 in vbox
- Timestamp:
- Sep 29, 2010 3:28:35 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 66275
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/tcp.h
r32276 r32818 180 180 181 181 /** 182 * Close a socket returned by RTTcpClientConnect(). 183 * 184 * @returns iprt status code. 185 * @param hSocket The socket handle. 186 * @param fGracefulShutdown If true, try do a graceful shutdown of the 187 * outgoing pipe and draining any lingering input. 188 * This is sometimes better for the server side. 189 * If false, just close the connection without 190 * further ado. 191 */ 192 RTR3DECL(int) RTTcpClientCloseEx(RTSOCKET Sock, bool fGracefulShutdown); 193 194 /** 182 195 * Receive data from a socket. 183 196 * -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r32691 r32818 1044 1044 1045 1045 if (pSockInt->hSocket != NIL_RTSOCKET) 1046 rc = RTTcpClientClose (pSockInt->hSocket);1046 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1047 1047 1048 1048 RTMemFree(pSockInt); … … 1072 1072 return VINF_SUCCESS; 1073 1073 1074 rc = RTTcpClientClose (pSockInt->hSocket);1074 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1075 1075 } 1076 1076 … … 1090 1090 } 1091 1091 1092 rc = RTTcpClientClose (pSockInt->hSocket);1092 rc = RTTcpClientCloseEx(pSockInt->hSocket, false /*fGracefulShutdown*/); 1093 1093 pSockInt->hSocket = NIL_RTSOCKET; 1094 1094 -
trunk/src/VBox/Main/MediumImpl.cpp
r32780 r32818 5459 5459 5460 5460 if (pSocketInt->hSocket != NIL_RTSOCKET) 5461 RTTcpClientClose (pSocketInt->hSocket);5461 RTTcpClientCloseEx(pSocketInt->hSocket, false /*fGracefulShutdown*/); 5462 5462 5463 5463 RTMemFree(pSocketInt); … … 5478 5478 PVDSOCKETINT pSocketInt = (PVDSOCKETINT)Sock; 5479 5479 5480 rc = RTTcpClientClose (pSocketInt->hSocket);5480 rc = RTTcpClientCloseEx(pSocketInt->hSocket, false /*fGracefulShutdown*/); 5481 5481 pSocketInt->hSocket = NIL_RTSOCKET; 5482 5482 return rc; -
trunk/src/VBox/Runtime/r3/tcp.cpp
r32810 r32818 919 919 920 920 921 RTR3DECL(int) RTTcpClientCloseEx(RTSOCKET Sock, bool fGracefulShutdown) 922 { 923 return rtTcpClose(Sock, "RTTcpClientCloseEx", fGracefulShutdown); 924 } 925 926 921 927 #ifdef FIX_FOR_3_2 922 928 /**
Note:
See TracChangeset
for help on using the changeset viewer.