MySQL 8.3.0
Source Code Documentation
resolver.h File Reference
#include <algorithm>
#include <memory>
#include <string>
#include <system_error>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include "mysql/harness/net_ts/impl/socket_error.h"
#include "mysql/harness/stdx/expected.h"

Go to the source code of this file.

Classes

struct  std::is_error_code_enum< net::ip::resolver_errc >
 

Namespaces

namespace  net
 
namespace  net::ip
 
namespace  std
 
namespace  net::impl
 
namespace  net::impl::resolver
 

Enumerations

enum class  net::ip::resolver_errc {
  net::ip::try_again = EAI_AGAIN , net::ip::bad_flags = EAI_BADFLAGS , net::ip::fail = EAI_FAIL , net::ip::bad_family = EAI_FAMILY ,
  net::ip::out_of_memory = EAI_MEMORY , net::ip::host_not_found = EAI_NONAME , net::ip::service_not_found = EAI_SERVICE , net::ip::bad_socktype = EAI_SOCKTYPE
}
 

Functions

const std::error_category & net::ip::resolver_category () noexcept
 
std::error_code net::ip::make_error_code (resolver_errc ec)
 
stdx::expected< void, std::error_code > net::impl::resolver::gethostname (char *buf, size_t buf_len)
 get hostname. More...
 
stdx::expected< void, std::error_code > net::impl::resolver::getnameinfo (const struct sockaddr *saddr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
 
stdx::expected< std::unique_ptr< struct addrinfo, void(*)(struct addrinfo *)>, std::error_code > net::impl::resolver::getaddrinfo (const char *node, const char *service, const struct addrinfo *hints)
 
stdx::expected< const char *, std::error_code > net::impl::resolver::inetntop (int af, const void *src, char *out, size_t out_len)