diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-03-01 00:46:43 +0300 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-02-28 16:50:36 -0600 |
commit | 2b47fd2eb615511ee1f2f29d496cd817e54740e1 (patch) | |
tree | 073309b433d3b26f1078ce1b4337d32f24359a98 /src/stream_base.h | |
parent | c9151547bcc61bd528810a5f294b180ac30c2e45 (diff) | |
download | node-new-2b47fd2eb615511ee1f2f29d496cd817e54740e1.tar.gz |
stream_base: `.writev()` has limited support
Only TCP and JSStream do support `.writev()` on all platforms at the
moment. Ensure that it won't be enabled everywhere.
Fix: https://github.com/iojs/io.js/issues/995
PR-URL: https://github.com/iojs/io.js/pull/1008
Reviewed-by: Bert Belder <bertbelder@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'src/stream_base.h')
-rw-r--r-- | src/stream_base.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stream_base.h b/src/stream_base.h index 0864eb51ca..dcbde09bac 100644 --- a/src/stream_base.h +++ b/src/stream_base.h @@ -158,9 +158,15 @@ class StreamResource { class StreamBase : public StreamResource { public: + enum Flags { + kFlagNone = 0x0, + kFlagHasWritev = 0x1 + }; + template <class Base> static inline void AddMethods(Environment* env, - v8::Handle<v8::FunctionTemplate> target); + v8::Handle<v8::FunctionTemplate> target, + int flags = kFlagNone); virtual void* Cast() = 0; virtual bool IsAlive() = 0; |