Browse Source

tcp_wrap: update after libuv API change

Ben Noordhuis 14 years ago
parent
commit
9cb624986c
  1. 6
      src/tcp_wrap.cc

6
src/tcp_wrap.cc

@ -127,8 +127,10 @@ class TCPWrap : public StreamWrap {
UNWRAP
int namelen = sizeof(address);
int r = uv_getsockname(&wrap->handle_, &address, &namelen);
int addrlen = sizeof(address);
int r = uv_getsockname(reinterpret_cast<uv_handle_t*>(&wrap->handle_),
reinterpret_cast<sockaddr*>(&address),
&addrlen);
Local<Object> sockname = Object::New();
if (r != 0) {

Loading…
Cancel
Save