X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6b10632500a505a15f000d2c1ed217887f61d8f..db51298a741c46719a70884f750befc3b5749036:/include/wx/msw/private/sockmsw.h?ds=sidebyside diff --git a/include/wx/msw/private/sockmsw.h b/include/wx/msw/private/sockmsw.h index 2490b15482..24e393204e 100644 --- a/include/wx/msw/private/sockmsw.h +++ b/include/wx/msw/private/sockmsw.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/msw/gsockmsw.h +// Name: wx/msw/private/gsockmsw.h // Purpose: MSW-specific socket implementation // Authors: Guilhem Lavaux, Guillermo Rodriguez Garcia, Vadim Zeitlin // Created: April 1997 @@ -7,7 +7,7 @@ // (C) 1999-2000, Guillermo Rodriguez Garcia // (C) 2008 Vadim Zeitlin // RCS_ID: $Id$ -// License: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -37,14 +37,17 @@ public: virtual ~wxSocketImplMSW(); - virtual wxSocketImpl *WaitConnection(wxSocketBase& wxsocket); + virtual wxSocketError GetLastError() const; - - int Read(void *buffer, int size); - int Write(const void *buffer, int size); + virtual void ReenableEvents(wxSocketEventFlags WXUNUSED(flags)) + { + // notifications are never disabled in this implementation, there is no + // need for this as WSAAsyncSelect() only sends notification once when + // the new data becomes available anyhow, so there is no need to do + // anything here + } private: - virtual wxSocketError DoHandleConnect(int ret); virtual void DoClose(); virtual void UnblockAndRegisterWithEventLoop() @@ -54,17 +57,11 @@ private: wxSocketManager::Get()->Install_Callback(this); } - wxSocketError Connect_Timeout(); - int Recv_Stream(void *buffer, int size); - int Recv_Dgram(void *buffer, int size); - int Send_Stream(const void *buffer, int size); - int Send_Dgram(const void *buffer, int size); - int m_msgnumber; friend class wxSocketMSWManager; - DECLARE_NO_COPY_CLASS(wxSocketImplMSW) + wxDECLARE_NO_COPY_CLASS(wxSocketImplMSW); }; #endif /* _WX_MSW_GSOCKMSW_H_ */