]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
Partially applied patch [ 763900 ] fix for vertical toolbar
[wxWidgets.git] / src / common / sckaddr.cpp
index 66d12c2bd1da272f46e300bcdecdc5b4bd1d1fa6..80658f3314e7e3d29f4b9fb791dc08129cc169db 100644 (file)
@@ -181,6 +181,18 @@ wxSockAddress *wxIPV4address::Clone() const
     return addr;
 }
 
+wxString wxIPV4address::IPAddress() const
+{      
+       unsigned long raw =  GAddress_INET_GetHostAddress(m_address);
+       return wxString::Format(
+               _T("%u.%u.%u.%u"),
+               (unsigned char)(raw & 0xff),
+               (unsigned char)((raw>>8) & 0xff),
+               (unsigned char)((raw>>16) & 0xff),
+               (unsigned char)((raw>>24) & 0xff)
+               );
+}
+
 #if 0
 // ---------------------------------------------------------------------------
 // wxIPV6address