void AfterGetAddrInfo(uv_getaddrinfo_t* req, int status, struct addrinfo* res) {
HandleScope scope(node_isolate);
- GetAddrInfoReqWrap* req_wrap =
- reinterpret_cast<GetAddrInfoReqWrap*>(req->data);
+ GetAddrInfoReqWrap* req_wrap = static_cast<GetAddrInfoReqWrap*>(req->data);
Local<Value> argv[] = {
Integer::New(status, node_isolate),
static void After(uv_fs_t *req) {
HandleScope scope(node_isolate);
- FSReqWrap* req_wrap = reinterpret_cast<FSReqWrap*>(req->data);
+ FSReqWrap* req_wrap = static_cast<FSReqWrap*>(req->data);
assert(&req_wrap->req_ == req);
// check if data needs to be cleaned
// TODO(bnoordhuis) Maybe share this with TCPWrap?
void PipeWrap::AfterConnect(uv_connect_t* req, int status) {
- ConnectWrap* req_wrap = reinterpret_cast<ConnectWrap*>(req->data);
- PipeWrap* wrap = reinterpret_cast<PipeWrap*>(req->handle->data);
+ ConnectWrap* req_wrap = static_cast<ConnectWrap*>(req->data);
+ PipeWrap* wrap = static_cast<PipeWrap*>(req->handle->data);
HandleScope scope(node_isolate);
void TCPWrap::AfterConnect(uv_connect_t* req, int status) {
- ConnectWrap* req_wrap = reinterpret_cast<ConnectWrap*>(req->data);
- TCPWrap* wrap = reinterpret_cast<TCPWrap*>(req->handle->data);
+ ConnectWrap* req_wrap = static_cast<ConnectWrap*>(req->data);
+ TCPWrap* wrap = static_cast<TCPWrap*>(req->handle->data);
HandleScope scope(node_isolate);
assert(req != NULL);
- SendWrap* req_wrap = reinterpret_cast<SendWrap*>(req->data);
- UDPWrap* wrap = reinterpret_cast<UDPWrap*>(req->handle->data);
+ SendWrap* req_wrap = static_cast<SendWrap*>(req->data);
+ UDPWrap* wrap = static_cast<UDPWrap*>(req->handle->data);
assert(req_wrap->persistent().IsEmpty() == false);
assert(wrap->persistent().IsEmpty() == false);
return;
}
- UDPWrap* wrap = reinterpret_cast<UDPWrap*>(handle->data);
+ UDPWrap* wrap = static_cast<UDPWrap*>(handle->data);
HandleScope scope(node_isolate);
Local<Object> wrap_obj = wrap->object();