Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. brconst.h
  5. Abstract:
  6. Private header file which defines assorted mainifest constants for
  7. the browser service
  8. Author:
  9. Rita Wong (ritaw) 06-May-1991
  10. Revision History:
  11. --*/
  12. #ifndef _BRCONST_INCLUDED_
  13. #define _BRCONST_INCLUDED_
  14. //
  15. // Age the masters server list cache every MASTER_PERIODICITY times.
  16. //
  17. #define MASTER_PERIODICITY 12*60
  18. //
  19. // Refresh the backup browsers server list every BACKUP_PERIODICITY
  20. //
  21. #define BACKUP_PERIODICITY 12*60
  22. //
  23. // Buffer size used for GetBrowserServerList responses (in bytes).
  24. //
  25. #define BROWSER_BACKUP_LIST_RESPONSE_SIZE 400
  26. //
  27. // If we failed to retrieve the server list, retry in BACKUP_ERROR_PERIODICITY
  28. // seconds
  29. //
  30. #define BACKUP_ERROR_PERIODICITY 30
  31. //
  32. // If we failed to retrieve the server (or domain) list BACKUP_ERROR_FAILURE
  33. // times in a row, stop being a backup browser.
  34. //
  35. #define BACKUP_ERROR_FAILURE 5
  36. //
  37. // Once we have stopped being a backup browser, we will not become a backup
  38. // until at least BACKUP_BROWSER_RECOVERY_TIME milliseconds have elapsed.
  39. //
  40. #define BACKUP_BROWSER_RECOVERY_TIME 30*60*1000
  41. //
  42. // If we receive fewer than this # of domains or servers, we treat it as an
  43. // error.
  44. //
  45. #define BROWSER_MINIMUM_DOMAIN_NUMBER 1
  46. #define BROWSER_MINIMUM_SERVER_NUMBER 2
  47. //
  48. // Wait for this many minutes after each failed promotion before
  49. // continuing.
  50. //
  51. #define FAILED_PROMOTION_PERIODICITY 5*60
  52. //
  53. // Run the master browser timer for 3 times (45 minutes) before
  54. // tossing the list in the service.
  55. //
  56. #define MASTER_BROWSER_LAN_TIMER_LIMIT 3
  57. //
  58. // A browse request has to have a hit count of at least this value before
  59. // it is retained in the cache.
  60. //
  61. #define CACHED_BROWSE_RESPONSE_HIT_LIMIT 1
  62. //
  63. // The maximum number of cache responses we will allow.
  64. //
  65. #define CACHED_BROWSE_RESPONSE_LIMIT 10
  66. #endif // ifndef _BRCONST_INCLUDED_