5#ifndef WPINET_UV_GETADDRINFO_H_
6#define WPINET_UV_GETADDRINFO_H_
56 const addrinfo* hints =
nullptr);
73 const std::shared_ptr<GetAddrInfoReq>& req,
75 const addrinfo* hints =
nullptr) {
95 const addrinfo* hints =
nullptr);
112 std::function<
void(
const addrinfo&)> callback,
114 const addrinfo* hints =
nullptr) {
115 GetAddrInfo(*loop, std::move(callback), node, service, hints);
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition: Signal.h:495
GetAddrInfo request.
Definition: GetAddrInfo.h:27
sig::Signal< const addrinfo & > resolved
Resolved lookup signal.
Definition: GetAddrInfo.h:37
Loop & GetLoop() const
Definition: GetAddrInfo.h:31
Event loop.
Definition: Loop.h:37
Request.
Definition: Request.h:130
uv_getaddrinfo_t * GetRaw() noexcept
Get the underlying request data structure.
Definition: Request.h:145
basic_string_view< char > string_view
Definition: core.h:520
void GetAddrInfo(Loop &loop, const std::shared_ptr< GetAddrInfoReq > &req, std::string_view node, std::string_view service={}, const addrinfo *hints=nullptr)
Asynchronous getaddrinfo(3).
UV_REQ_FIELDS uv_loop_t * loop
Definition: uv.h:893
void * data
Definition: uv.h:1795