Changeset 53539 in vbox
- Timestamp:
- Dec 14, 2014 9:49:20 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97282
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd-ifs.h
r52022 r53539 1056 1056 * @param pszAddress The address to connect to. 1057 1057 * @param uPort The port to connect to. 1058 */ 1059 DECLR3CALLBACKMEMBER(int, pfnClientConnect, (VDSOCKET Sock, const char *pszAddress, uint32_t uPort)); 1058 * @param cMillies Number of milliseconds to wait for the connect attempt to complete. 1059 * Use RT_INDEFINITE_WAIT to wait for ever. 1060 * Use RT_SOCKETCONNECT_DEFAULT_WAIT to wait for the default time 1061 * configured on the running system. 1062 */ 1063 DECLR3CALLBACKMEMBER(int, pfnClientConnect, (VDSOCKET Sock, const char *pszAddress, uint32_t uPort, 1064 RTMSINTERVAL cMillies)); 1060 1065 1061 1066 /** -
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r53407 r53539 728 728 729 729 /** @copydoc VDINTERFACETCPNET::pfnClientConnect */ 730 static DECLCALLBACK(int) drvvdINIPClientConnect(VDSOCKET Sock, const char *pszAddress, uint32_t uPort) 730 static DECLCALLBACK(int) drvvdINIPClientConnect(VDSOCKET Sock, const char *pszAddress, uint32_t uPort, 731 RTMSINTERVAL cMillies) 731 732 { 732 733 int rc = VINF_SUCCESS; … … 737 738 ip6_addr_t ip6; 738 739 #endif 740 741 NOREF(cMillies); /** LwIP doesn't support connect timeout. */ 739 742 740 743 /* Check whether lwIP is set up in this VM instance. */ … … 1167 1170 1168 1171 /** @copydoc VDINTERFACETCPNET::pfnClientConnect */ 1169 static DECLCALLBACK(int) drvvdTcpClientConnect(VDSOCKET Sock, const char *pszAddress, uint32_t uPort) 1172 static DECLCALLBACK(int) drvvdTcpClientConnect(VDSOCKET Sock, const char *pszAddress, uint32_t uPort, 1173 RTMSINTERVAL cMillies) 1170 1174 { 1171 1175 int rc = VINF_SUCCESS; 1172 1176 PVDSOCKETINT pSockInt = (PVDSOCKETINT)Sock; 1173 1177 1174 rc = RTTcpClientConnect (pszAddress, uPort, &pSockInt->hSocket);1178 rc = RTTcpClientConnectEx(pszAddress, uPort, &pSockInt->hSocket, cMillies, NULL); 1175 1179 if (RT_SUCCESS(rc)) 1176 1180 { -
trunk/src/VBox/Storage/ISCSI.cpp
r51105 r53539 844 844 return VERR_NET_DEST_ADDRESS_REQUIRED; 845 845 846 rc = pImage->pIfNet->pfnClientConnect(pImage->Socket, pImage->pszHostname, pImage->uPort );846 rc = pImage->pIfNet->pfnClientConnect(pImage->Socket, pImage->pszHostname, pImage->uPort, pImage->uReadTimeout); 847 847 if (RT_FAILURE(rc)) 848 848 {
Note:
See TracChangeset
for help on using the changeset viewer.