X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aadbdf11bda695e2ca135ef1e4dc09d6c01d2521..00cd8a958f1c032ac48bcc240ee4098f4c8bfa46:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index a8161406c8..aa5d6ca9b4 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 // --------------------------------------------------------------------------- @@ -95,6 +99,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) @@ -276,3 +282,7 @@ typedef void (wxEvtHandler::*wxSocketEventFunction)(wxSocketEvent&); (wxObject *) NULL }, #endif + // wxUSE_SOCKETS + +#endif + // _WX_NETWORK_SOCKET_H