nsNetAddr.h 642 B

1234567891011121314151617181920212223242526272829303132
  1. /* vim: et ts=2 sw=2 tw=80
  2. */
  3. /* This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #ifndef nsNetAddr_h__
  7. #define nsNetAddr_h__
  8. #include "nsINetAddr.h"
  9. #include "mozilla/net/DNS.h"
  10. #include "mozilla/Attributes.h"
  11. class nsNetAddr final : public nsINetAddr
  12. {
  13. ~nsNetAddr() {}
  14. public:
  15. NS_DECL_ISUPPORTS
  16. NS_DECL_NSINETADDR
  17. explicit nsNetAddr(mozilla::net::NetAddr* addr);
  18. private:
  19. mozilla::net::NetAddr mAddr;
  20. protected:
  21. /* additional members */
  22. };
  23. #endif // !nsNetAddr_h__