summaryrefslogtreecommitdiff
path: root/src/tls_wrap.h
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-01-29 02:48:10 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-01-29 02:49:03 +0400
commit9836a4eeda1e2d43aad0923f1f72b364792629bc (patch)
treef9a43115eaca3a49f83c910d20ea363bef3b2b29 /src/tls_wrap.h
parenteaf76648a6ba05932465fdb2478a16ca4b6c17a6 (diff)
downloadandroid-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.tar.gz
android-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.tar.bz2
android-node-v8-9836a4eeda1e2d43aad0923f1f72b364792629bc.zip
stream_wrap: use `uv_try_write` where possible
Use `uv_try_write` for string and buffer writes, thus avoiding to do allocations and copying in some of the cases.
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r--src/tls_wrap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h
index db78009ede..946cc1c64d 100644
--- a/src/tls_wrap.h
+++ b/src/tls_wrap.h
@@ -51,6 +51,7 @@ class TLSCallbacks : public crypto::SSLWrap<TLSCallbacks>,
v8::Handle<v8::Context> context);
const char* Error();
+ int TryWrite(uv_buf_t** bufs, size_t* count);
int DoWrite(WriteWrap* w,
uv_buf_t* bufs,
size_t count,