X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b4183d82b7b833106edd751632c2f24c9580eb6..58a8ab88685a72ac030d5e2ade62b4d796f11bed:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index c9e161331c..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); @@ -331,6 +345,8 @@ typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); #define wxEVT_SOCKET wxEVT_FIRST+301 -#define EVT_SOCKET(id, func) { wxEVT_SOCKET, id, 0, (wxObjectEventFunction) (wxEventFunction) (wxSocketEventFunction) & func }, +#define EVT_SOCKET(id, func) { wxEVT_SOCKET, id, 0, \ + (wxObjectEventFunction) (wxEventFunction) (wxSocketEventFunction) & func, \ + (wxObject *) NULL }, #endif