X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db131261984ad9a406373bfa497e117c524ef0ed..22d5903e91cebda4d9614515b05cc9a894306278:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 49db4403d1..9037f92c7b 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -80,6 +80,12 @@ class WXDLLEXPORT wxSocketHandler; class WXDLLEXPORT wxSocketBase : public wxEvtHandler { DECLARE_CLASS(wxSocketBase) +#ifdef __WXMAC__ + friend void wxMacSocketOnRequestProc(void *refcon , short event) ; +#endif +#if defined(__WXGTK__) && defined(WXSOCK_INTERNAL) + friend void wxPrereadSocket(wxSocketBase *sock); +#endif public: enum wxSockFlags { NONE=0, NOWAIT=1, WAITALL=2, SPEED=4 }; @@ -163,7 +169,7 @@ public: inline size_t LastCount() const { return m_lcount; } inline int LastError() const { return m_error; } - inline void SetFlags(wxSockFlags _flags); + void SetFlags(wxSockFlags _flags); inline void SetTimeout(unsigned long sec) { m_timeout = sec; } // seconds = -1 means infinite wait @@ -208,7 +214,15 @@ protected: friend class wxSocketServer; friend class wxSocketHandler; +#ifdef __SALFORDC__ +public: +#endif + wxSocketBase(wxSockFlags flags, wxSockType type); + +#ifdef __SALFORDC__ +protected: +#endif bool _Wait(long seconds, long microseconds, int type); @@ -329,6 +343,8 @@ public: typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); +#define wxEVT_SOCKET wxEVT_FIRST+301 + #define EVT_SOCKET(id, func) { wxEVT_SOCKET, id, 0, \ (wxObjectEventFunction) (wxEventFunction) (wxSocketEventFunction) & func, \ (wxObject *) NULL },