Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-07-27 06:13:49 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-27 06:13:49 +0400
commit83b82f900faa0c1ecb1adb9fcfe31936ce51fa41 (patch)
tree816ad1e1b86ea6230eaa7ca4c487e1347a0d0f10 /src
parent187fe27a6e7da9d1f5ec9896af51a16c69d4c6c2 (diff)
wrap: upgrade pipe_wrap and tcp_wrap to new libuv API
Diffstat (limited to 'src')
-rw-r--r--src/pipe_wrap.cc4
-rw-r--r--src/tcp_wrap.cc4
2 files changed, 4 insertions, 4 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);
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 328b835b886..7ac5d86d355 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -196,7 +196,7 @@ class TCPWrap : public StreamWrap {
int backlog = args[0]->Int32Value();
- int r = uv_tcp_listen(&wrap->handle_, backlog, OnConnection);
+ int r = uv_listen((uv_stream_t*)&wrap->handle_, backlog, OnConnection);
// Error starting the tcp.
if (r) SetErrno(uv_last_error().code);
@@ -204,7 +204,7 @@ class TCPWrap : public StreamWrap {
return scope.Close(Integer::New(r));
}
- static void OnConnection(uv_handle_t* handle, int status) {
+ static void OnConnection(uv_stream_t* handle, int status) {
HandleScope scope;
TCPWrap* wrap = static_cast<TCPWrap*>(handle->data);