|
MPD
0.20.18
|
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 |
1.8.14