• Home
  • Raw
  • Download

Lines Matching refs:wrap

58   UDPWrap* wrap = Unwrap<UDPWrap>(args.Holder());  in SetLibuvInt32()  local
59 if (wrap == nullptr) { in SetLibuvInt32()
63 Environment* env = wrap->env(); in SetLibuvInt32()
69 int err = fn(wrap->GetLibuvHandle(), flag); in SetLibuvInt32()
243 UDPWrap* wrap = Unwrap<UDPWrap>(args.This()); in GetFD() local
244 if (wrap != nullptr) in GetFD()
245 uv_fileno(reinterpret_cast<uv_handle_t*>(&wrap->handle_), &fd); in GetFD()
265 UDPWrap* wrap; in DoBind() local
266 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoBind()
282 err = uv_udp_bind(&wrap->handle_, in DoBind()
288 wrap->listener()->OnAfterBind(); in DoBind()
295 UDPWrap* wrap; in DoConnect() local
296 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoConnect()
310 err = uv_udp_connect(&wrap->handle_, in DoConnect()
319 UDPWrap* wrap; in Open() local
320 ASSIGN_OR_RETURN_UNWRAP(&wrap, in Open()
325 int err = uv_udp_open(&wrap->handle_, fd); in Open()
343 UDPWrap* wrap; in BufferSize() local
344 ASSIGN_OR_RETURN_UNWRAP(&wrap, in BufferSize()
359 uv_handle_t* handle = reinterpret_cast<uv_handle_t*>(&wrap->handle_); in BufferSize()
388 UDPWrap* wrap; in Disconnect() local
389 ASSIGN_OR_RETURN_UNWRAP(&wrap, in Disconnect()
395 int err = uv_udp_connect(&wrap->handle_, nullptr); in Disconnect()
401 UDPWrap* wrap; in SetMulticastInterface() local
402 ASSIGN_OR_RETURN_UNWRAP(&wrap, in SetMulticastInterface()
413 int err = uv_udp_set_multicast_interface(&wrap->handle_, iface_cstr); in SetMulticastInterface()
419 UDPWrap* wrap; in SetMembership() local
420 ASSIGN_OR_RETURN_UNWRAP(&wrap, in SetMembership()
434 int err = uv_udp_set_membership(&wrap->handle_, in SetMembership()
453 UDPWrap* wrap; in SetSourceMembership() local
454 ASSIGN_OR_RETURN_UNWRAP(&wrap, in SetSourceMembership()
470 int err = uv_udp_set_source_membership(&wrap->handle_, in SetSourceMembership()
493 UDPWrap* wrap; in DoSend() local
494 ASSIGN_OR_RETURN_UNWRAP(&wrap, in DoSend()
543 wrap->current_send_req_wrap_ = args[0].As<Object>(); in DoSend()
544 wrap->current_send_has_callback_ = in DoSend()
547 err = static_cast<int>(wrap->Send(*bufs, count, addr)); in DoSend()
549 wrap->current_send_req_wrap_.Clear(); in DoSend()
550 wrap->current_send_has_callback_ = false; in DoSend()
646 UDPWrapBase* wrap = UDPWrapBase::FromObject(args.Holder()); in RecvStart() local
647 args.GetReturnValue().Set(wrap == nullptr ? UV_EBADF : wrap->RecvStart()); in RecvStart()
661 UDPWrapBase* wrap = UDPWrapBase::FromObject(args.Holder()); in RecvStop() local
662 args.GetReturnValue().Set(wrap == nullptr ? UV_EBADF : wrap->RecvStop()); in RecvStop()
689 UDPWrap* wrap = ContainerOf(&UDPWrap::handle_, in OnAlloc() local
691 *buf = wrap->listener()->OnAlloc(suggested_size); in OnAlloc()
703 UDPWrap* wrap = ContainerOf(&UDPWrap::handle_, handle); in OnRecv() local
704 wrap->listener()->OnRecv(nread, *buf, addr, flags); in OnRecv()
790 UDPWrap* wrap; in GetSendQueueSize() local
792 &wrap, args.Holder(), args.GetReturnValue().Set(UV_EBADF)); in GetSendQueueSize()
794 size_t size = uv_udp_get_send_queue_size(&wrap->handle_); in GetSendQueueSize()
799 UDPWrap* wrap; in GetSendQueueCount() local
801 &wrap, args.Holder(), args.GetReturnValue().Set(UV_EBADF)); in GetSendQueueCount()
803 size_t count = uv_udp_get_send_queue_count(&wrap->handle_); in GetSendQueueCount()