diff --git a/src/uvw/pipe.hpp b/src/uvw/pipe.hpp index 36827cc9..55960ab1 100644 --- a/src/uvw/pipe.hpp +++ b/src/uvw/pipe.hpp @@ -28,7 +28,9 @@ public: bool init(bool ipc = false) { return initialize(&uv_pipe_init, ipc); } - // TODO uv_pipe_open + void open(FileHandle file) { + invoke(&uv_pipe_open, get(), file); + } 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 d80e43cb..4173e54a 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -131,7 +131,7 @@ public: } template - void accept(Stream &ref) { + void accept(U &ref) { this->invoke(&uv_accept, this->template get(), ref.template get()); } @@ -161,7 +161,7 @@ public: } template - void write(Stream &send, char *data, ssize_t len) { + void write(U &send, char *data, ssize_t len) { uv_buf_t bufs[] = { uv_buf_init(data, len) }; auto listener = [ptr = this->shared_from_this()](const auto &event, details::Write &) { @@ -175,7 +175,7 @@ public: } template - void write(Stream &send, std::unique_ptr data, ssize_t len) { + void write(U &send, std::unique_ptr data, ssize_t len) { write(send, data.get(), len); }