summaryrefslogtreecommitdiff
path: root/includes/BStream.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-21 23:49:52 -0800
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-12-21 23:49:52 -0800
commit4fb18f31865f9766579d7221b040b1da9c98b561 (patch)
tree3ae77b80dd383c9c623c15c06e6144cfc084f228 /includes/BStream.h
parenta46ed587d6bac9dcda69b56979b2f0398013b5ef (diff)
WebSockets can now send frames.
Diffstat (limited to 'includes/BStream.h')
-rw-r--r--includes/BStream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/BStream.h b/includes/BStream.h
index fd00b83..f39765d 100644
--- a/includes/BStream.h
+++ b/includes/BStream.h
@@ -11,9 +11,11 @@ class BStream : public Handle {
virtual bool isClosed();
virtual bool isEOF();
virtual bool canRead();
+ virtual bool canWrite() { return m_h->canWrite(); }
virtual const char * getName();
virtual ssize_t read(void * buf, size_t count) throw (GeneralException);
- virtual off64_t getSize();
+ virtual ssize_t write(const void * buf, size_t count) throw (GeneralException) { return m_h->write(buf, count); }
+ virtual off64_t getSize();
int peekNextByte();
String readString(bool putNL = false);
bool isEmpty() { return m_availBytes == 0; }