From 04ba5d4c86966e68bbcd0ccaaa3305bb20158deb Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 22 Jul 2016 17:17:53 +0200 Subject: [PATCH] a bunch of TODOs --- src/uvw/handle.hpp | 4 ++++ src/uvw/pipe.hpp | 2 ++ src/uvw/stream.hpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/uvw/handle.hpp b/src/uvw/handle.hpp index e1574d5c..54b32c62 100644 --- a/src/uvw/handle.hpp +++ b/src/uvw/handle.hpp @@ -91,6 +91,10 @@ public: std::size_t size() const noexcept { return uv_handle_size(this->template get()->type); } + + // TODO uv_send_buffer_size + // TODO uv_recv_buffer_size + // TODO uv_fileno }; diff --git a/src/uvw/pipe.hpp b/src/uvw/pipe.hpp index 1413ff6e..36827cc9 100644 --- a/src/uvw/pipe.hpp +++ b/src/uvw/pipe.hpp @@ -28,6 +28,8 @@ public: bool init(bool ipc = false) { return initialize(&uv_pipe_init, ipc); } + // TODO uv_pipe_open + void bind(std::string name) { invoke(&uv_pipe_bind, get(), name.data()); } diff --git a/src/uvw/stream.hpp b/src/uvw/stream.hpp index 65fe262e..4b480fba 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -156,6 +156,8 @@ public: write(data.get(), len); } + // TODO uv_write2 + int tryWrite(char *data, ssize_t len) { uv_buf_t bufs[] = { uv_buf_init(data, len) }; auto bw = uv_try_write(this->template get(), bufs, 1); @@ -179,6 +181,8 @@ public: bool writable() const noexcept { return (uv_is_writable(this->template get()) == 1); } + + // TODO uv_stream_set_blocking };