• Home
  • Raw
  • Download

Lines Matching refs:wrap

209   UDPWrap* wrap = Unwrap<UDPWrap>(args.This());  in GetFD()  local
210 if (wrap != nullptr) in GetFD()
211 uv_fileno(reinterpret_cast<uv_handle_t*>(&wrap->handle_), &fd); in GetFD()
231 UDPWrap* wrap; in DoBind() local
232 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoBind()
248 err = uv_udp_bind(&wrap->handle_, in DoBind()
254 wrap->listener()->OnAfterBind(); in DoBind()
261 UDPWrap* wrap; in DoConnect() local
262 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoConnect()
276 err = uv_udp_connect(&wrap->handle_, in DoConnect()
285 UDPWrap* wrap; in Open() local
286 ASSIGN_OR_RETURN_UNWRAP(&wrap, in Open()
291 int err = uv_udp_open(&wrap->handle_, fd); in Open()
309 UDPWrap* wrap; in BufferSize() local
310 ASSIGN_OR_RETURN_UNWRAP(&wrap, in BufferSize()
325 uv_handle_t* handle = reinterpret_cast<uv_handle_t*>(&wrap->handle_); in BufferSize()
354 UDPWrap* wrap; in Disconnect() local
355 ASSIGN_OR_RETURN_UNWRAP(&wrap, in Disconnect()
361 int err = uv_udp_connect(&wrap->handle_, nullptr); in Disconnect()
368 UDPWrap* wrap = Unwrap<UDPWrap>(args.Holder()); \
369 Environment* env = wrap->env(); \
375 int err = wrap == nullptr ? UV_EBADF : fn(&wrap->handle_, flag); \
387 UDPWrap* wrap; in X() local
388 ASSIGN_OR_RETURN_UNWRAP(&wrap, in X()
399 int err = uv_udp_set_multicast_interface(&wrap->handle_, iface_cstr); in X()
405 UDPWrap* wrap; in SetMembership() local
406 ASSIGN_OR_RETURN_UNWRAP(&wrap, in SetMembership()
420 int err = uv_udp_set_membership(&wrap->handle_, in SetMembership()
439 UDPWrap* wrap; in SetSourceMembership() local
440 ASSIGN_OR_RETURN_UNWRAP(&wrap, in SetSourceMembership()
456 int err = uv_udp_set_source_membership(&wrap->handle_, in SetSourceMembership()
479 UDPWrap* wrap; in DoSend() local
480 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoSend()
529 wrap->current_send_req_wrap_ = args[0].As<Object>(); in DoSend()
530 wrap->current_send_has_callback_ = in DoSend()
533 err = static_cast<int>(wrap->Send(*bufs, count, addr)); in DoSend()
535 wrap->current_send_req_wrap_.Clear(); in DoSend()
536 wrap->current_send_has_callback_ = false; in DoSend()
632 UDPWrapBase* wrap = UDPWrapBase::FromObject(args.Holder()); in RecvStart() local
633 args.GetReturnValue().Set(wrap == nullptr ? UV_EBADF : wrap->RecvStart()); in RecvStart()
647 UDPWrapBase* wrap = UDPWrapBase::FromObject(args.Holder()); in RecvStop() local
648 args.GetReturnValue().Set(wrap == nullptr ? UV_EBADF : wrap->RecvStop()); in RecvStop()
675 UDPWrap* wrap = ContainerOf(&UDPWrap::handle_, in OnAlloc() local
677 *buf = wrap->listener()->OnAlloc(suggested_size); in OnAlloc()
689 UDPWrap* wrap = ContainerOf(&UDPWrap::handle_, handle); in OnRecv() local
690 wrap->listener()->OnRecv(nread, *buf, addr, flags); in OnRecv()