- wxIPV6address();
- wxIPV6address(const wxIPV6address& other);
- virtual ~wxIPV6address();
-
- // IPV6 name formats
- //
- // hostname
- // 3ffe:ffff:0100:f101:0210:a4ff:fee3:9566
- // compact (base85) Itu&-ZQ82s>J%s99FJXT (depends on platform api)
- // compressed format ::1
- // ipv4 mapped ::ffff:1.2.3.4
- virtual bool Hostname(const wxString& name);
-
- bool Hostname(unsigned char addr[16]);
- virtual bool Service(const wxString& name);
- virtual bool Service(unsigned short port);
-
- // localhost (0000:0000:0000:0000:0000:0000:0000:0001 (::1))
- virtual bool LocalHost();
- virtual bool IsLocalHost() const;
-
- // any (0000:0000:0000:0000:0000:0000:0000:0000 (::))
- virtual bool AnyAddress();
- // all (?)
- virtual bool BroadcastAddress();
-
- // 3ffe:ffff:0100:f101:0210:a4ff:fee3:9566
- virtual wxString IPAddress() const;
-
- virtual wxString Hostname() const;
- virtual unsigned short Service() const;
-
- virtual int Type() { return wxSockAddress::IPV6; }
- virtual wxSockAddress *Clone() const { return new wxIPV6address(*this); }
+ wxIPV6address() : wxIPaddress() { }
+ wxIPV6address(const wxIPV6address& other) : wxIPaddress(other) { }
+
+ // implement wxSockAddress pure virtuals:
+ virtual Family Type() { return IPV6; }
+ virtual wxSockAddress *Clone() const { return new wxIPV6address(*this); }
+
+
+ // implement wxIPaddress pure virtuals:
+ virtual bool IsLocalHost() const;
+
+ virtual wxString IPAddress() const;
+
+ // IPv6-specific methods:
+ bool Hostname(unsigned char addr[16]);
+
+ using wxIPaddress::Hostname;
+
+private:
+ virtual void DoInitImpl();
+
+ DECLARE_DYNAMIC_CLASS(wxIPV6address)