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.

106 lines
1.7 KiB

  1. /*
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. sdpconn.h
  5. Abstract:
  6. Author:
  7. */
  8. #ifndef __SDP_CONNECTION__
  9. #define __SDP_CONNECTION__
  10. #include "sdpcommo.h"
  11. #include "sdpbstrl.h"
  12. #include "sdpgen.h"
  13. class _DllDecl SDP_CONNECTION : public SDP_VALUE
  14. {
  15. public:
  16. SDP_CONNECTION();
  17. inline SDP_LIMITED_CHAR_STRING &GetNetworkType();
  18. inline SDP_LIMITED_CHAR_STRING &GetAddressType();
  19. inline SDP_ADDRESS &GetStartAddress();
  20. inline SDP_ULONG &GetNumAddresses();
  21. inline SDP_BYTE &GetTtl();
  22. HRESULT SetConnection(
  23. IN BSTR StartAddress,
  24. IN ULONG NumAddresses,
  25. IN BYTE Ttl
  26. );
  27. protected:
  28. virtual BOOL GetField(
  29. OUT SDP_FIELD *&Field,
  30. OUT BOOL &AddToArray
  31. );
  32. virtual void InternalReset();
  33. private:
  34. SDP_LIMITED_CHAR_STRING m_NetworkType;
  35. SDP_LIMITED_CHAR_STRING m_AddressType;
  36. SDP_ADDRESS m_StartAddress;
  37. SDP_ULONG m_NumAddresses;
  38. SDP_BYTE m_Ttl;
  39. };
  40. inline SDP_LIMITED_CHAR_STRING &
  41. SDP_CONNECTION::GetNetworkType(
  42. )
  43. {
  44. return m_NetworkType;
  45. }
  46. inline SDP_LIMITED_CHAR_STRING &
  47. SDP_CONNECTION::GetAddressType(
  48. )
  49. {
  50. return m_AddressType;
  51. }
  52. inline SDP_ADDRESS &
  53. SDP_CONNECTION::GetStartAddress(
  54. )
  55. {
  56. return m_StartAddress;
  57. }
  58. inline SDP_ULONG &
  59. SDP_CONNECTION::GetNumAddresses(
  60. )
  61. {
  62. return m_NumAddresses;
  63. }
  64. inline SDP_BYTE &
  65. SDP_CONNECTION::GetTtl(
  66. )
  67. {
  68. return m_Ttl;
  69. }
  70. #endif // __SDP_CONNECTION__