- inline int SockAddrLen();
- inline int GetFamily();
- inline int Type() { return wxSockAddress::UNIX; }
+ 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)