X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a324a7bccf4bda8f4f2bf09daee8104cae953cee..bf7d7ee7062f7f6028df40e43745235658e38b4d:/include/wx/sckaddr.h diff --git a/include/wx/sckaddr.h b/include/wx/sckaddr.h index 1ea7a599dd..17a9477905 100644 --- a/include/wx/sckaddr.h +++ b/include/wx/sckaddr.h @@ -21,7 +21,7 @@ #if wxUSE_SOCKETS #include "wx/string.h" -#include "gsocket.h" +#include "wx/gsocket.h" class WXDLLEXPORT wxSockAddress : public wxObject { @@ -56,13 +56,11 @@ public: 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; } }; @@ -88,8 +86,11 @@ public: }; #endif -#ifdef __UNIX__ -#include +#if defined(__UNIX__) && !defined(__APPLE__) +#include +#ifndef __VMS__ +# include +#endif class WXDLLEXPORT wxUNIXaddress : public wxSockAddress { DECLARE_DYNAMIC_CLASS(wxUNIXaddress) @@ -109,6 +110,6 @@ public: #endif // wxUSE_SOCKETS - + #endif // _WX_NETWORK_ADDRESS_H