+wxString wxIPV6address::IPAddress() const
+{
+ unsigned long raw = GAddress_INET_GetHostAddress(m_address);
+ return wxString::Format(
+ _T("%u.%u.%u.%u"),
+ (unsigned char)((raw>>24) & 0xff),
+ (unsigned char)((raw>>16) & 0xff),
+ (unsigned char)((raw>>8) & 0xff),
+ (unsigned char)(raw & 0xff)
+ );
+}
+
+wxString wxIPV6address::Hostname() const
+{
+ char hostname[1024];
+
+ hostname[0] = 0;
+ GAddress_INET_GetHostName(m_address, hostname, 1024);
+ return wxString::FromAscii(hostname);
+}
+
+unsigned short wxIPV6address::Service() const
+{
+ return GAddress_INET_GetPort(m_address);
+}
+
+#endif // wxUSE_IPV6
+
+#if defined(__UNIX__) && !defined(__WINDOWS__) && !defined(__WINE__) && (!defined(__WXMAC__) || defined(__DARWIN__))