]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
use one shot timers in wxAnimationCtrl (patch 1774535)
[wxWidgets.git] / src / common / sckaddr.cpp
index a3b1c1767fbfa3fff895f1dc776200a45e0fe838..8e79847d83e4d9ab0d9dbb778294ea45bcc15f6f 100644 (file)
@@ -178,6 +178,11 @@ bool wxIPV4address::IsLocalHost() const
   return (Hostname() == wxT("localhost") || IPAddress() == wxT("127.0.0.1"));
 }
 
+bool wxIPV4address::BroadcastAddress()
+{
+  return (GAddress_INET_SetBroadcastAddress(m_address) == GSOCK_NOERROR);
+}
+
 bool wxIPV4address::AnyAddress()
 {
   return (GAddress_INET_SetAnyAddress(m_address) == GSOCK_NOERROR);
@@ -217,8 +222,8 @@ wxString wxIPV4address::IPAddress() const
 
 bool wxIPV4address::operator==(const wxIPV4address& addr) const
 {
-    return Hostname().Cmp(addr.Hostname().c_str()) == 0 &&
-            Service() == addr.Service();
+    return Hostname().Cmp(addr.Hostname()) == 0 &&
+           Service() == addr.Service();
 }
 
 #if wxUSE_IPV6
@@ -275,6 +280,11 @@ bool wxIPV6address::IsLocalHost() const
   return (Hostname() == wxT("localhost") || IPAddress() == wxT("127.0.0.1"));
 }
 
+bool wxIPV6address::BroadcastAddress()
+{
+  return (GAddress_INET_SetBroadcastAddress(m_address) == GSOCK_NOERROR);
+}
+
 bool wxIPV6address::AnyAddress()
 {
   return (GAddress_INET_SetAnyAddress(m_address) == GSOCK_NOERROR);