43 [[nodiscard]]
inline static nng_ctx empty() noexcept
45 return NNG_CTX_INITIALIZER;
48 [[nodiscard]]
inline static clev::expected<void> destroy(nng_ctx v)
noexcept
53 [[nodiscard]]
inline int id() const noexcept {
return nng_ctx_id(v); }
61 return nngxx::invoke(nng_ctx_open, &v,
static_cast<nng_socket
>(s));
clev::iface< nng_socket > socket_view
clev::iface< nng_aio * > aio_view
clev::expected< void > invoke(ret_t(*f)(args_t...), args_t... args) noexcept
constexpr bool nngxx_socket_is_really_needed_v