#if wxUSE_SOCKETS
#include "wx/string.h"
-#include "gsocket.h"
+#include "wx/gsocket.h"
class WXDLLEXPORT wxSockAddress : public wxObject {
bool Service(const wxString& name);
bool Service(unsigned short port);
bool LocalHost();
+ bool AnyAddress();
wxString Hostname();
unsigned short Service();
- void Build(struct sockaddr*& addr, size_t& len);
- void Disassemble(struct sockaddr *addr, size_t len);
-
inline int Type() { return wxSockAddress::IPV4; }
};
};
#endif
-#ifdef __UNIX__
-#include <sys/un.h>
+#if defined(__UNIX__) && !defined(__APPLE__)
+#include <sys/socket.h>
+#ifndef __VMS__
+# include <sys/un.h>
+#endif
class WXDLLEXPORT wxUNIXaddress : public wxSockAddress {
DECLARE_DYNAMIC_CLASS(wxUNIXaddress)
#endif
// wxUSE_SOCKETS
-
+
#endif
// _WX_NETWORK_ADDRESS_H