2012-02-29 03:19:00 -08:00
|
|
|
/* vim: et ts=2 sw=2 tw=80
|
|
|
|
*/
|
2012-05-21 04:12:37 -07: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 03:19:00 -08:00
|
|
|
|
|
|
|
#ifndef nsNetAddr_h__
|
|
|
|
#define nsNetAddr_h__
|
|
|
|
|
|
|
|
#include "nsINetAddr.h"
|
2012-12-23 13:08:43 -08:00
|
|
|
#include "mozilla/net/DNS.h"
|
2012-06-05 20:18:25 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2012-02-29 03:19:00 -08:00
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class nsNetAddr final : public nsINetAddr
|
2012-02-29 03:19:00 -08:00
|
|
|
{
|
2014-06-24 09:36:44 -07:00
|
|
|
~nsNetAddr() {}
|
|
|
|
|
2012-02-29 03:19:00 -08:00
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSINETADDR
|
|
|
|
|
2014-08-05 06:20:50 -07:00
|
|
|
explicit nsNetAddr(mozilla::net::NetAddr* addr);
|
2012-02-29 03:19:00 -08:00
|
|
|
|
|
|
|
private:
|
2012-12-23 13:08:43 -08:00
|
|
|
mozilla::net::NetAddr mAddr;
|
2012-02-29 03:19:00 -08:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/* additional members */
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // !nsNetAddr_h__
|