[Box Backup-dev] COMMIT r598 - box/chris/general/bin/bbstored

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sun May 28 02:18:21 BST 2006


Author: chris
Date: 2006-05-28 01:18:13 +0000 (Sun, 28 May 2006)
New Revision: 598

Modified:
   box/chris/general/bin/bbstored/BackupStoreDaemon.h
Log:
* BackupStoreDaemon.h
- Disabled interprocess comms on Win32


Modified: box/chris/general/bin/bbstored/BackupStoreDaemon.h
===================================================================
--- box/chris/general/bin/bbstored/BackupStoreDaemon.h	2006-05-27 09:58:43 UTC (rev 597)
+++ box/chris/general/bin/bbstored/BackupStoreDaemon.h	2006-05-28 01:18:13 UTC (rev 598)
@@ -38,11 +38,13 @@
 	BackupStoreDaemon(const BackupStoreDaemon &rToCopy);
 public:
 
+#ifndef WIN32
 	// For BackupContext to comminicate with housekeeping process
 	void SendMessageToHousekeepingProcess(const void *Msg, int MsgLen)
 	{
 		mInterProcessCommsSocket.Write(Msg, MsgLen);
 	}
+#endif
 
 protected:
 	
@@ -56,22 +58,36 @@
 	virtual const char *DaemonBanner() const;
 
 	const ConfigurationVerify *GetConfigVerify() const;
-	
+
+#ifndef WIN32	
 	// Housekeeping functions
 	void HousekeepingProcess();
 	bool CheckForInterProcessMsg(int AccountNum = 0, int MaximumWaitTime = 0);
+#endif
 
 	void LogConnectionStats(const char *commonName, const SocketStreamTLS &s);
 
+
 private:
 	BackupStoreAccountDatabase *mpAccountDatabase;
 	BackupStoreAccounts *mpAccounts;
 	bool mExtendedLogging;
 	bool mHaveForkedHousekeeping;
 	bool mIsHousekeepingProcess;
-	
+
+#ifndef WIN32	
 	SocketStream mInterProcessCommsSocket;
 	IOStreamGetLine mInterProcessComms;
+#endif
+
+#ifdef WIN32
+	virtual void OnIdle();
+	bool mHousekeepingInited;
+#endif
+
+	void HousekeepingInit();
+	void RunHousekeepingIfNeeded();
+	int64_t mLastHousekeepingRun;
 };
 
 




More information about the Boxbackup-dev mailing list