X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/062c4861718a681a27384d6a2313fc26cda3b3e4..bcbc841d417b8365e869003bb0552166f3ece204:/include/wx/sckint.h diff --git a/include/wx/sckint.h b/include/wx/sckint.h index 3fec426a7a..103595f5f6 100644 --- a/include/wx/sckint.h +++ b/include/wx/sckint.h @@ -15,12 +15,14 @@ #pragma interface #endif +#include "wx/defs.h" + #if wxUSE_SOCKETS -#include -#include -#include -#include +#include "wx/object.h" +#include "wx/list.h" +#include "wx/socket.h" +#include "wx/thread.h" // Socket state class SocketState @@ -81,6 +83,7 @@ class SocketWaiter: public wxThread { wxSocketInternal *m_internal; int m_fd; }; +#endif class SocketRequester #if wxUSE_THREADS @@ -97,17 +100,17 @@ class SocketRequester bool WaitFor(wxSocketBase::wxRequestNotify req, int millisec); +#if wxUSE_THREADS // Thread Entry point // --- virtual void *Entry(); +#endif public: wxSocketBase *m_socket; wxSocketInternal *m_internal; int m_fd; }; -#endif - // wxUSE_THREADS class wxSocketInternal { public: @@ -132,6 +135,7 @@ class wxSocketInternal { void QueueRequest(SockRequest *request, bool async); void WaitForEnd(SockRequest *request); + // Used by SocketRequester SockRequest *WaitForReq(); void EndRequest(SockRequest *req); public: