X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd595142ac07961d383a7b60d64cb77441211759..eee3624b111881520d7d58fe174ef563c62d8375:/include/wx/socket.h?ds=sidebyside diff --git a/include/wx/socket.h b/include/wx/socket.h index b8ebcb846b..df32866665 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -12,7 +12,7 @@ #ifndef _WX_NETWORK_SOCKET_H #define _WX_NETWORK_SOCKET_H -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "socket.h" #endif @@ -33,6 +33,7 @@ #include "wx/sckaddr.h" #include "wx/gsocket.h" +#include "wx/list.h" // ------------------------------------------------------------------------ // Types and constants @@ -260,6 +261,8 @@ private: wxSockCbk m_cbk; // callback char *m_cdata; // callback data #endif // WXWIN_COMPATIBILITY + + DECLARE_NO_COPY_CLASS(wxSocketBase) }; @@ -278,6 +281,8 @@ public: bool AcceptWith(wxSocketBase& socket, bool wait = TRUE); bool WaitForAccept(long seconds = -1, long milliseconds = 0); + + DECLARE_NO_COPY_CLASS(wxSocketServer) }; @@ -296,6 +301,8 @@ public: virtual bool Connect(wxSockAddress& addr, bool wait = TRUE); bool WaitOnConnect(long seconds = -1, long milliseconds = 0); + + DECLARE_NO_COPY_CLASS(wxSocketClient) }; @@ -322,6 +329,7 @@ public: /* TODO: bool Connect(wxSockAddress& addr); */ + DECLARE_NO_COPY_CLASS(wxDatagramSocket) };