5#ifndef WPINET_UV_GETADDRINFO_H_
6#define WPINET_UV_GETADDRINFO_H_
56 std::string_view node, std::string_view service = {},
57 std::optional<addrinfo> hints = {});
74 const std::shared_ptr<GetAddrInfoReq>& req,
75 std::string_view node, std::string_view service = {},
76 std::optional<addrinfo> hints = {}) {
95 std::string_view node, std::string_view service = {},
96 std::optional<addrinfo> hints = {});
113 std::function<
void(
const addrinfo&)> callback,
114 std::string_view node, std::string_view service = {},
115 std::optional<addrinfo> hints = {}) {
116 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:28
sig::Signal< const addrinfo & > resolved
Resolved lookup signal.
Definition GetAddrInfo.h:38
Loop & GetLoop() const
Definition GetAddrInfo.h:32
Event loop.
Definition Loop.h:37
Request.
Definition Request.h:135
uv_getaddrinfo_t * GetRaw() noexcept
Definition Request.h:150
void GetAddrInfo(Loop &loop, const std::shared_ptr< GetAddrInfoReq > &req, std::string_view node, std::string_view service={}, std::optional< addrinfo > hints={})
Asynchronous getaddrinfo(3).
UV_REQ_FIELDS uv_loop_t * loop
Definition uv.h:968
void * data
Definition uv.h:1907