return *this;
}
-void wxSockAddress::CopyObject(wxObject& dest) const
-{
- wxSockAddress *addr = (wxSockAddress *)&dest;
-
- wxObject::CopyObject(dest);
- addr->SetAddress(GetAddress());
-}
-
void wxSockAddress::Clear()
-{
+{
GAddress_destroy(m_address);
m_address = GAddress_new();
}
bool wxIPV4address::Hostname(const wxString& name)
{
// Some people are sometimes fool.
- if (name == wxT(""))
+ if (name == wxT(""))
{
wxLogWarning( _("Trying to solve a NULL hostname: giving up") );
return FALSE;
unsigned short wxIPV4address::Service()
{
- return GAddress_INET_GetPort(m_address);
+ return GAddress_INET_GetPort(m_address);
}
#if 0
unsigned short wxIPV6address::Service()
{
- return GAddress_INET_GetPort(m_address);
+ return GAddress_INET_GetPort(m_address);
}
#endif
#endif
-#endif
+#endif
// wxUSE_SOCKETS