*** empty log message ***

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-07-29 05:27:19 +00:00
parent 0e320a79f1
commit 65ccd2b826
2 changed files with 10 additions and 10 deletions

View File

@@ -21,7 +21,7 @@
#if wxUSE_SOCKETS #if wxUSE_SOCKETS
#include "wx/string.h" #include "wx/string.h"
#include "gsocket.h" #include "wx/gsocket.h"
class WXDLLEXPORT wxSockAddress : public wxObject { class WXDLLEXPORT wxSockAddress : public wxObject {
@@ -109,6 +109,6 @@ public:
#endif #endif
// wxUSE_SOCKETS // wxUSE_SOCKETS
#endif #endif
// _WX_NETWORK_ADDRESS_H // _WX_NETWORK_ADDRESS_H

View File

@@ -31,7 +31,7 @@
#endif #endif
#include "wx/sckaddr.h" #include "wx/sckaddr.h"
#include "gsocket.h" #include "wx/gsocket.h"
class WXDLLEXPORT wxSocketEvent; class WXDLLEXPORT wxSocketEvent;
class WXDLLEXPORT wxSocketBase : public wxEvtHandler class WXDLLEXPORT wxSocketBase : public wxEvtHandler
@@ -43,7 +43,7 @@ public:
typedef int wxSockFlags; typedef int wxSockFlags;
// Type of request // Type of request
enum wxSockType { SOCK_CLIENT, SOCK_SERVER, SOCK_INTERNAL, SOCK_UNINIT }; enum wxSockType { SOCK_CLIENT, SOCK_SERVER, SOCK_INTERNAL, SOCK_UNINIT };
typedef void (*wxSockCbk)(wxSocketBase& sock,GSocketEvent evt,char *cdata); typedef void (*wxSockCbk)(wxSocketBase& sock,GSocketEvent evt,char *cdata);
protected: protected:
@@ -72,7 +72,7 @@ protected:
size_t m_defer_nbytes; // Defering buffer size size_t m_defer_nbytes; // Defering buffer size
wxList m_states; // Stack of states wxList m_states; // Stack of states
public: public:
wxSocketBase(); wxSocketBase();
virtual ~wxSocketBase(); virtual ~wxSocketBase();
@@ -102,7 +102,7 @@ public:
inline size_t LastCount() const { return m_lcount; } inline size_t LastCount() const { return m_lcount; }
inline GSocketError LastError() const { return GSocket_GetError(m_socket); } inline GSocketError LastError() const { return GSocket_GetError(m_socket); }
inline wxSockType GetType() const { return m_type; } inline wxSockType GetType() const { return m_type; }
void SetFlags(wxSockFlags _flags); void SetFlags(wxSockFlags _flags);
wxSockFlags GetFlags() const; wxSockFlags GetFlags() const;
inline void SetTimeout(unsigned long sec) { m_timeout = sec; } inline void SetTimeout(unsigned long sec) { m_timeout = sec; }
@@ -114,7 +114,7 @@ public:
bool WaitForRead(long seconds = -1, long microseconds = 0); bool WaitForRead(long seconds = -1, long microseconds = 0);
bool WaitForWrite(long seconds = -1, long microseconds = 0); bool WaitForWrite(long seconds = -1, long microseconds = 0);
bool WaitForLost(long seconds = -1, long microseconds = 0); bool WaitForLost(long seconds = -1, long microseconds = 0);
// Save the current state of Socket // Save the current state of Socket
void SaveState(); void SaveState();
void RestoreState(); void RestoreState();
@@ -125,7 +125,7 @@ public:
// Setup event handler // Setup event handler
void SetEventHandler(wxEvtHandler& evt_hdlr, int id = -1); void SetEventHandler(wxEvtHandler& evt_hdlr, int id = -1);
// Method called when it happens something on the socket // Method called when it happens something on the socket
void SetNotify(GSocketEventFlags flags); void SetNotify(GSocketEventFlags flags);
virtual void OnRequest(GSocketEvent req_evt); virtual void OnRequest(GSocketEvent req_evt);
@@ -159,13 +159,13 @@ public:
#ifdef __SALFORDC__ #ifdef __SALFORDC__
protected: protected:
#endif #endif
bool _Wait(long seconds, long microseconds, int type); bool _Wait(long seconds, long microseconds, int type);
int DeferRead(char *buffer, size_t nbytes); int DeferRead(char *buffer, size_t nbytes);
int DeferWrite(const char *buffer, size_t nbytes); int DeferWrite(const char *buffer, size_t nbytes);
void DoDefer(GSocketEvent evt); void DoDefer(GSocketEvent evt);
// Pushback library // Pushback library
size_t GetPushback(char *buffer, size_t size, bool peek); size_t GetPushback(char *buffer, size_t size, bool peek);
}; };