X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ed1d15d0d866cac78f7c0da176db8dd5288bc8..a0d8a3052817fef6eef27e9a6ab8802495a39db8:/src/common/sckstrm.cpp diff --git a/src/common/sckstrm.cpp b/src/common/sckstrm.cpp index 85562ae51c..c0b5332b04 100644 --- a/src/common/sckstrm.cpp +++ b/src/common/sckstrm.cpp @@ -19,6 +19,8 @@ #pragma hdrstop #endif +#if wxUSE_SOCKETS + #ifndef WX_PRECOMP #endif @@ -45,6 +47,11 @@ wxOutputStream& wxSocketOutputStream::Write(const void *buffer, size_t size) return *this; } +size_t wxSocketOutputStream::OnSysWrite(const void *buffer, size_t size) +{ + return m_o_socket->Write((const char *)buffer, size).LastCount(); +} + // --------------------------------------------------------------------------- // wxSocketInputStream // --------------------------------------------------------------------------- @@ -64,6 +71,11 @@ wxInputStream& wxSocketInputStream::Read(void *buffer, size_t size) return *this; } +size_t wxSocketInputStream::OnSysRead(void *buffer, size_t size) +{ + return m_i_socket->Read((char *)buffer, size).LastCount(); +} + // --------------------------------------------------------------------------- // wxSocketStream // --------------------------------------------------------------------------- @@ -76,3 +88,5 @@ wxSocketStream::wxSocketStream(wxSocketBase& s) wxSocketStream::~wxSocketStream() { } + +#endif