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);
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
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);