Source code of Windows XP (NT5)
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.

66 lines
1.2 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: portparser.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // CPortParser class
  7. //
  8. //
  9. // History: 10/22/98 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //----------------------------------------------------------------
  15. #ifndef _PORTPARSER_H_
  16. #define _PORTPARSER_H_
  17. #include "parser.h"
  18. const DWORD ADDRESS_BUFFER_SIZE = 63;
  19. class CPortParser : public Parser
  20. {
  21. public:
  22. CPortParser (PWSTR pwstrPortInfo)
  23. :Parser (pwstrPortInfo),
  24. m_pPort (NULL),
  25. m_pEnd ((PWCHAR)start)
  26. {}
  27. HRESULT Init ();
  28. //
  29. // IP Address to listen to RADIUS requests on
  30. //
  31. HRESULT GetIPAddress (PDWORD pdwIPAddress);
  32. //
  33. // UDP Port to listen to RADIUS requests on
  34. //
  35. HRESULT GetNextPort (PWORD pwPort);
  36. //
  37. // port type - accounting/authentication
  38. //
  39. HRESULT GetPortType (PPORTTYPE pPortType);
  40. protected:
  41. //
  42. // these indicate the start of the respective tokens
  43. //
  44. PWCHAR m_pPort;
  45. PWCHAR m_pEnd;
  46. PWCHAR m_pObjstart;
  47. };
  48. #endif //_PORTPARSER_H_