1 #ifndef MSP_NET_RESOLVE_H_
2 #define MSP_NET_RESOLVE_H_
12 /** Resolves host and service names into a socket address. If host is empty,
13 the loopback address will be used. If host is "*", the wildcard address will
14 be used. If service is empty, a socket address with a null service will be
15 returned. With the IP families, these are not very useful. */
16 SockAddr *resolve(const std::string &, const std::string &, Family = UNSPEC);
18 /** And overload of resolve() that takes host and service as a single string,
19 separated by a colon. If the host part contains colons, such as is the case
20 with a numeric IPv6 address, it must be enclosed in brackets. */
21 SockAddr *resolve(const std::string &, Family = UNSPEC);