X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Fresolve.h;fp=source%2Fnet%2Fresolve.h;h=3071b771f569aa57f196c41cc4f8f9520c715130;hp=212a7f0a47574068b1b7573acf973ef76cbbc5ca;hb=394c9a732192fce9b3b453dfdb9e92400af2a4f8;hpb=0cd8309240cd48fdc16d9cc433297e33a0a2cdd0 diff --git a/source/net/resolve.h b/source/net/resolve.h index 212a7f0..3071b77 100644 --- a/source/net/resolve.h +++ b/source/net/resolve.h @@ -9,6 +9,7 @@ #include #include #include +#include "mspnet_api.h" #include "sockaddr.h" namespace Msp { @@ -18,19 +19,19 @@ namespace Net { the loopback address will be used. If host is "*", the wildcard address will be used. If service is empty, a socket address with a null service will be returned. With the IP families, these are not very useful. */ -SockAddr *resolve(const std::string &, const std::string &, Family = UNSPEC); +MSPNET_API SockAddr *resolve(const std::string &, const std::string &, Family = UNSPEC); /** And overload of resolve() that takes host and service as a single string, separated by a colon. If the host part contains colons, such as is the case with a numeric IPv6 address, it must be enclosed in brackets. */ -SockAddr *resolve(const std::string &, Family = UNSPEC); +MSPNET_API SockAddr *resolve(const std::string &, Family = UNSPEC); /** An asynchronous name resolver. Blocking calls are performed in a thread and completion is notified with one of the two signals. */ -class Resolver +class MSPNET_API Resolver { private: struct Task