- 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
- // 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();
-
- // 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();
+ wxIPV6address(const wxIPV6address& other);
+ virtual ~wxIPV6address();
+
+ // implement wxSockAddress pure virtuals:
+
+ virtual int Type() { return wxSockAddress::IPV6; }
+ virtual wxSockAddress *Clone() const { return new wxIPV6address(*this); }
+
+
+ // implement wxIPaddress pure virtuals:
+
+ virtual bool Hostname(const wxString& name);
+ 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;
+
+
+ // IPv6-specific methods:
+
+ bool Hostname(unsigned char addr[16]);
+
+private:
+ wxString m_origHostname;
+
+ DECLARE_DYNAMIC_CLASS(wxIPV6address)