]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckstrm.cpp
more DLL compilation changes
[wxWidgets.git] / src / common / sckstrm.cpp
index 85562ae51c8685232be9d4e38fd91210c3681bc1..c0b5332b046e59d7779858b18bd833bafe70c19c 100644 (file)
@@ -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