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.

54 lines
1.4 KiB

  1. //
  2. // MODULE: SNIFFCONTROLLERLOCAL.H
  3. //
  4. // PURPOSE: sniff controller class for Local TS
  5. //
  6. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  7. //
  8. // AUTHOR: Oleg Kalosha
  9. //
  10. // ORIGINAL DATE: 12-11-98
  11. //
  12. // NOTES: Concrete implementation of CSniffController class for Local TS
  13. //
  14. // Version Date By Comments
  15. //--------------------------------------------------------------------
  16. // V3.2 12-11-98 OK
  17. //
  18. #if !defined(AFX_SNIFFCONTROLLERLOCAL_H__5FAF2243_8577_11D3_8D4C_00C04F949D33__INCLUDED_)
  19. #define AFX_SNIFFCONTROLLERLOCAL_H__5FAF2243_8577_11D3_8D4C_00C04F949D33__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. #include "SniffController.h"
  24. class CTopic;
  25. class CSniffControllerLocal : public CSniffController
  26. {
  27. CTopic* m_pTopic;
  28. public:
  29. CSniffControllerLocal(CTopic* pTopic);
  30. ~CSniffControllerLocal();
  31. public:
  32. virtual void SetTopic(CTopic* pTopic);
  33. public:
  34. virtual bool AllowAutomaticOnStartSniffing(NID numNodeID);
  35. virtual bool AllowAutomaticOnFlySniffing(NID numNodeID);
  36. virtual bool AllowManualSniffing(NID numNodeID);
  37. virtual bool AllowResniff(NID numNodeID);
  38. protected:
  39. virtual bool IsSniffable(NID numNodeID);
  40. private:
  41. bool CheckNetNodePropBool(LPCTSTR net_prop, LPCTSTR node_prop, NID node_id);
  42. };
  43. #endif // !defined(AFX_SNIFFCONTROLLERLOCAL_H__5FAF2243_8577_11D3_8D4C_00C04F949D33__INCLUDED_)