- public:
- wxSocketOutputStream(wxSocketBase& s);
- virtual ~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; }
-
- bool Bad() { return m_o_socket->IsDisconnected(); }
- size_t LastWrite() { return m_o_socket->LastCount(); }
- 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);