MPD
0.20.15
|
Go to the source code of this file.
Functions | |
addrinfo * | resolve_host_port (const char *host_port, unsigned default_port, int flags, int socktype) |
Resolve a specification in the form "host", "host:port", "[host]:port". More... | |
addrinfo* resolve_host_port | ( | const char * | host_port, |
unsigned | default_port, | ||
int | flags, | ||
int | socktype | ||
) |
Resolve a specification in the form "host", "host:port", "[host]:port".
This is a convenience wrapper for getaddrinfo().
Throws #std::runtime_error on error.
default_port | a default port number that will be used if none is given in the string (if applicable); pass 0 to go without a default |