+// An IPv4 address
+class WXDLLIMPEXP_NET wxIPV4address : public wxIPaddress
+{
+public:
+ wxIPV4address();
+ wxIPV4address(const wxIPV4address& other);
+ virtual ~wxIPV4address();
+
+ bool operator==(const wxIPV4address& addr) const;
+
+ // implement wxSockAddress pure virtuals:
+ virtual int Type() { return wxSockAddress::IPV4; }
+ virtual wxSockAddress *Clone() const;
+
+
+ // implement wxIPaddress pure virtuals:
+
+ // handles the usual dotted quad format too
+ virtual bool Hostname(const wxString& name);
+ virtual bool Service(const wxString& name);
+ virtual bool Service(unsigned short port);
+
+ // localhost (127.0.0.1)
+ virtual bool LocalHost();
+ virtual bool IsLocalHost() const;
+
+ // any (0.0.0.0)
+ virtual bool AnyAddress();
+ // all (255.255.255.255)
+ virtual bool BroadcastAddress();
+
+ // a.b.c.d
+ virtual wxString IPAddress() const;
+
+ virtual wxString Hostname() const;
+ virtual unsigned short Service() const;
+
+
+ // IPv4-specific methods:
+
+ bool Hostname(unsigned long addr);
+ wxString OrigHostname() { return m_origHostname; }
+