2017-07-06 15:00:35 +03:00
|
|
|
/* vim: et ts=2 sw=2 tw=80
|
2012-02-29 15:19:00 +04:00
|
|
|
*/
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-02-29 15:19:00 +04:00
|
|
|
|
|
|
|
#ifndef nsNetAddr_h__
|
|
|
|
#define nsNetAddr_h__
|
|
|
|
|
|
|
|
#include "nsINetAddr.h"
|
2012-12-24 01:08:43 +04:00
|
|
|
#include "mozilla/net/DNS.h"
|
2012-06-06 07:18:25 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2012-02-29 15:19:00 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class nsNetAddr final : public nsINetAddr {
|
2018-04-30 19:46:04 +03:00
|
|
|
~nsNetAddr() = default;
|
2014-06-24 20:36:44 +04:00
|
|
|
|
2012-02-29 15:19:00 +04:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSINETADDR
|
|
|
|
|
2014-08-05 17:20:50 +04:00
|
|
|
explicit nsNetAddr(mozilla::net::NetAddr* addr);
|
2012-02-29 15:19:00 +04:00
|
|
|
|
|
|
|
private:
|
2012-12-24 01:08:43 +04:00
|
|
|
mozilla::net::NetAddr mAddr;
|
2012-02-29 15:19:00 +04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/* additional members */
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !nsNetAddr_h__
|