Blocking Functions for getaddrinfo.
More...
Go to the source code of this file.
Blocking Functions for getaddrinfo.
Definition in file get_addr_info.hpp.
◆ GetAddrInfo()
std::vector< engine::io::Sockaddr > net::blocking::GetAddrInfo |
( |
std::string_view |
host, |
|
|
const char * |
service_or_port |
|
) |
| |
Resolve host and port via blocking syscall.
- Note
- It is recommended to use clients::dns::Resolver if possible
- Parameters
-
host | - hostname (or IP) to resolve |
service_and_port | - if this argument is a service name, it is translated to the corresponding port number, otherwise treated as port number. |