MySQL 8.0.39
Source Code Documentation
net::impl::resolver Namespace Reference

Functions

stdx::expected< void, std::error_code > gethostname (char *buf, size_t buf_len)
 get hostname. More...
 
stdx::expected< void, std::error_code > 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 > getaddrinfo (const char *node, const char *service, const struct addrinfo *hints)
 
stdx::expected< const char *, std::error_code > inetntop (int af, const void *src, char *out, size_t out_len)
 

Function Documentation

◆ getaddrinfo()

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 
)
inline

◆ gethostname()

stdx::expected< void, std::error_code > net::impl::resolver::gethostname ( char *  buf,
size_t  buf_len 
)
inline

get hostname.

Returns
void on success, the native function's error-code on error
Return values
std::errc::filename_too_longif the buffer is too small to contain the hostname + nul-char

◆ getnameinfo()

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 
)
inline

◆ inetntop()

stdx::expected< const char *, std::error_code > net::impl::resolver::inetntop ( int  af,
const void *  src,
char *  out,
size_t  out_len 
)
inline