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.

119 lines
3.0 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: procacct.cpp
  4. //
  5. // Synopsis: Implementation of CProcAccounting class methods
  6. //
  7. //
  8. // History: 10/20/97 MKarki Created
  9. //
  10. // Copyright (C) 1997-98 Microsoft Corporation
  11. // All rights reserved.
  12. //
  13. //----------------------------------------------------------------
  14. #include "radcommon.h"
  15. #include "procacct.h"
  16. //++--------------------------------------------------------------
  17. //
  18. // Function: CProcAccounting
  19. //
  20. // Synopsis: This is CProcAccounting class constructor
  21. //
  22. // Arguments: NONE
  23. //
  24. // Returns: NONE
  25. //
  26. //
  27. // History: MKarki Created 10/20/97
  28. //
  29. //----------------------------------------------------------------
  30. CProcAccounting::CProcAccounting()
  31. : m_pCPreValidator (NULL),
  32. m_pCPacketSender (NULL),
  33. m_pCSendToPipe (NULL)
  34. {
  35. } // end of CProcAccounting class constructor
  36. //++--------------------------------------------------------------
  37. //
  38. // Function: CProcAccounting
  39. //
  40. // Synopsis: This is CProcAccounting class destructor
  41. //
  42. // Arguments: NONE
  43. //
  44. // Returns: NONE
  45. //
  46. //
  47. // History: MKarki Created 10/20/97
  48. //
  49. //----------------------------------------------------------------
  50. CProcAccounting::~CProcAccounting()
  51. {
  52. } // end of CProcAccounting class destructor
  53. //++--------------------------------------------------------------
  54. //
  55. // Function: Init
  56. //
  57. // Synopsis: This is CProcAccounting class public
  58. // initialization method
  59. //
  60. // Arguments: NONE
  61. //
  62. // Returns: status
  63. //
  64. //
  65. // History: MKarki Created 10/20/97
  66. //
  67. //----------------------------------------------------------------
  68. BOOL
  69. CProcAccounting::Init(
  70. CPreValidator *pCPreValidator,
  71. CPacketSender *pCPacketSender,
  72. CSendToPipe *pCSendToPipe
  73. )
  74. {
  75. _ASSERT ((NULL != pCPreValidator) ||
  76. (NULL != pCPacketSender) ||
  77. (NULL != pCSendToPipe)
  78. );
  79. m_pCPreValidator = pCPreValidator;
  80. m_pCPacketSender = pCPacketSender;
  81. m_pCSendToPipe = pCSendToPipe;
  82. return (TRUE);
  83. } // end of CProcAccounting::Init method
  84. //++--------------------------------------------------------------
  85. //
  86. // Function: ProcessOutPacket
  87. //
  88. // Synopsis: This is CProcAccounting class public method
  89. // which carries out the processing of an outbound
  90. // RADIUS accounting packet
  91. //
  92. //
  93. // Arguments:
  94. // [in] CPacketRadius*
  95. //
  96. // Returns: HRESULT - status
  97. //
  98. //
  99. // History: MKarki Created 10/20/97
  100. //
  101. // Called By:
  102. //
  103. //----------------------------------------------------------------
  104. HRESULT
  105. CProcAccounting::ProcessOutPacket (
  106. CPacketRadius *pCPacketRadius
  107. )
  108. {
  109. return (S_OK);
  110. } // end of CProcAccounting::ProcessOutPacket method