diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-27 06:13:49 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-27 06:13:49 +0400 |
commit | 83b82f900faa0c1ecb1adb9fcfe31936ce51fa41 (patch) | |
tree | 816ad1e1b86ea6230eaa7ca4c487e1347a0d0f10 /src/pipe_wrap.cc | |
parent | 187fe27a6e7da9d1f5ec9896af51a16c69d4c6c2 (diff) |
wrap: upgrade pipe_wrap and tcp_wrap to new libuv API
Diffstat (limited to 'src/pipe_wrap.cc')
-rw-r--r-- | src/pipe_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index 605ea78d4c5..eb7069050f8 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -111,7 +111,7 @@ class PipeWrap : StreamWrap { int backlog = args[0]->Int32Value(); - int r = uv_pipe_listen(&wrap->handle_, OnConnection); + int r = uv_listen((uv_stream_t*)&wrap->handle_, backlog, OnConnection); // Error starting the pipe. if (r) SetErrno(uv_last_error().code); @@ -120,7 +120,7 @@ class PipeWrap : StreamWrap { } // TODO maybe share with TCPWrap? - static void OnConnection(uv_handle_t* handle, int status) { + static void OnConnection(uv_stream_t* handle, int status) { HandleScope scope; PipeWrap* wrap = static_cast<PipeWrap*>(handle->data); |