X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e5e41feafa1e1fe338ccc3fca63894b920f0ce96..c35414dbe42a39e6221d88182bebde920ad0164e:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 21cd4cba90..36a0934e45 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -16,6 +16,10 @@ #pragma interface "socket.h" #endif +#include "wx/defs.h" + +#if wxUSE_SOCKETS + // --------------------------------------------------------------------------- // Windows(tm) specific // --------------------------------------------------------------------------- @@ -37,10 +41,12 @@ // wxSocket headers (generic) // --------------------------------------------------------------------------- #ifdef WXPREC -#include + #include "wx/wxprec.h" #else -#include + #include "wx/event.h" + #include "wx/string.h" #endif + #include "wx/sckaddr.h" class WXDLLEXPORT wxSocketEvent; @@ -95,6 +101,8 @@ public: wxSocketBase& Read(char* buffer, size_t nbytes); wxSocketBase& Write(const char *buffer, size_t nbytes); wxSocketBase& Unread(const char *buffer, size_t nbytes); + wxSocketBase& ReadMsg(char *buffer, size_t nbytes); + wxSocketBase& WriteMsg(const char *buffer, size_t nbytes); void Discard(); // Try not to use this two methods (they sould be protected) @@ -262,7 +270,8 @@ public: wxSocketBase::wxRequestEvent SocketEvent() const { return m_skevt; } wxSocketBase *Socket() const { return m_socket; } - wxObject *Clone() const; + void CopyObject(wxObject& obj_d) const; + public: wxSocketBase::wxRequestEvent m_skevt; wxSocketBase *m_socket; @@ -275,3 +284,7 @@ typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); (wxObject *) NULL }, #endif + // wxUSE_SOCKETS + +#endif + // _WX_NETWORK_SOCKET_H