Changeset 31738 in vbox
- Timestamp:
- Aug 17, 2010 4:12:51 PM (14 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/FTM.cpp
r31737 r31738 27 27 #include <VBox/param.h> 28 28 #include <VBox/ssm.h> 29 #include <VBox/log.h> 29 30 30 31 #include <iprt/assert.h> … … 32 33 #include <iprt/string.h> 33 34 #include <iprt/mem.h> 34 #include < VBox/log.h>35 #include <iprt/tcp.h> 35 36 36 37 /** … … 80 81 81 82 /** 83 * Listen for incoming traffic destined for the standby VM. 84 * 85 * @copydoc FNRTTCPSERVE 86 * 87 * @returns VINF_SUCCESS or VERR_TCP_SERVER_STOP. 88 */ 89 static DECLCALLBACK(int) ftmR3StandbyServeConnection(RTSOCKET Sock, void *pvUser) 90 { 91 PVM pVM = (PVM)pvUser; 92 93 /* 94 * Disable Nagle. 95 */ 96 int rc = RTTcpSetSendCoalescing(Sock, false /*fEnable*/); 97 AssertRC(rc); 98 99 return VINF_SUCCESS; 100 } 101 102 /** 82 103 * Powers on the fault tolerant virtual machine. 83 104 * … … 119 140 { 120 141 /* standby */ 142 PRTTCPSERVER hServer; 143 144 rc = RTTcpServerCreateEx(pszAddress, uPort, &hServer); 145 if (RT_FAILURE(rc)) 146 return rc; 147 148 rc = RTTcpServerListen(hServer, ftmR3StandbyServeConnection, pVM); 149 /** @todo deal with the exit code to check if we should activate this standby VM. */ 150 151 RTTcpServerDestroy(hServer); 121 152 } 122 153 return VERR_NOT_IMPLEMENTED; -
trunk/src/VBox/VMM/FTMInternal.h
r31734 r31738 39 39 unsigned uPort; 40 40 unsigned uInterval; 41 41 42 } FTM; 42 43
Note:
See TracChangeset
for help on using the changeset viewer.