Renamed GSocket_SetBlocking to GSocket_SetNonBlocking and *Fallback to *Callback

Added GSocket_SetTimeout
Added timeout support in wxSocket (as it was in previous releases)
Updated documentation


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1999-07-30 17:54:18 +00:00
parent aa994705c7
commit 39b91ecabe
14 changed files with 158 additions and 60 deletions

View File

@@ -24,15 +24,16 @@
// wxSocket headers (generic)
// ---------------------------------------------------------------------------
#ifdef WXPREC
#include "wx/wxprec.h"
# include <wx/wxprec.h>
#else
#include "wx/event.h"
#include "wx/string.h"
# include <wx/event.h>
# include <wx/string.h>
#endif
#include "wx/sckaddr.h"
#include <wx/sckaddr.h>
#include "wx/gsocket.h"
class WXDLLEXPORT wxTimer;
class WXDLLEXPORT wxSocketEvent;
class WXDLLEXPORT wxSocketBase : public wxEvtHandler
{
@@ -65,11 +66,13 @@ protected:
bool m_notify_state; // Notify state
int m_id; // Socket id (for event handler)
// Defering variables
enum {
DEFER_READ, DEFER_WRITE, NO_DEFER
} m_defering; // Defering state
} m_defering; // Defering state
char *m_defer_buffer; // Defering target buffer
size_t m_defer_nbytes; // Defering buffer size
wxTimer *m_defer_timer; // Timer for defering mode
wxList m_states; // Stack of states