- public:
- wxSocketOutputStream(wxSocketBase& s);
- ~wxSocketOutputStream();
-
- wxOutputStream& Write(const void *buffer, size_t size);
- off_t SeekO( off_t WXUNUSED(pos), wxSeekMode WXUNUSED(mode) )
- { return -1; }
- off_t TellO()
- { return -1; }
-
- protected:
- wxSocketBase *m_o_socket;
+public:
+ wxSocketOutputStream(wxSocketBase& s);
+ virtual ~wxSocketOutputStream();
+
+protected:
+ wxSocketBase *m_o_socket;
+
+ size_t OnSysWrite(const void *buffer, size_t bufsize);
+
+ // socket streams are both un-seekable and size-less streams:
+ wxFileOffset OnSysTell() const
+ { return wxInvalidOffset; }
+ wxFileOffset OnSysSeek(wxFileOffset WXUNUSED(pos), wxSeekMode WXUNUSED(mode))
+ { return wxInvalidOffset; }
+
+ wxDECLARE_NO_COPY_CLASS(wxSocketOutputStream);