- struct hostent *hostent;
- struct in_addr *addr;
-
- if (name.IsNull())
- return FALSE;
-
- if (!name.IsNumber()) {
- if ((hostent = gethostbyname(name.GetData())) == 0) {
- return FALSE;
- }
- } else {
- long len_addr = inet_addr(name.GetData());
- if (len_addr == -1)
- return FALSE;
- m_addr->sin_addr.s_addr = len_addr;
- return TRUE;
- }
+ GAddress_destroy(m_address);
+ m_address = GAddress_new();
+}
+
+// ---------------------------------------------------------------------------
+// wxIPaddress
+// ---------------------------------------------------------------------------
+
+wxIPaddress::wxIPaddress()
+ : wxSockAddress()
+{
+}
+
+wxIPaddress::wxIPaddress(const wxIPaddress& other)
+ : wxSockAddress(other)
+{
+}
+
+wxIPaddress::~wxIPaddress()
+{
+}
+
+// ---------------------------------------------------------------------------
+// wxIPV4address
+// ---------------------------------------------------------------------------