[Box Backup-dev] COMMIT r591 - box/chris/general/lib/server
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 27 May 2006 09:51:23 +0000 (GMT)
Author: chris
Date: 2006-05-27 09:51:13 +0000 (Sat, 27 May 2006)
New Revision: 591
Modified:
box/chris/general/lib/server/ServerStream.h
Log:
* ServerStream.h
- Added an OnIdle() method on Win32, called when listen for new
connections times out, used to call housekeeping process in bbstored
on Win32
Modified: box/chris/general/lib/server/ServerStream.h
===================================================================
--- box/chris/general/lib/server/ServerStream.h 2006-05-27 09:49:39 UTC (rev 590)
+++ box/chris/general/lib/server/ServerStream.h 2006-05-27 09:51:13 UTC (rev 591)
@@ -56,6 +56,8 @@
return "generic-stream-server";
}
+ virtual void OnIdle() { }
+
virtual void Run()
{
// Set process title as appropraite
@@ -267,7 +269,9 @@
}
}
-#ifndef WIN32
+#ifdef WIN32
+ OnIdle();
+#else // !WIN32
// Clean up child processes (if forking daemon)
if(ForkToHandleRequests)
{