Files
ppsspp/net/resolve.h
T
oioitff 4ee889c025 Use a custom inet_pton and avoid inet_ntoa for now.
When/if ipv6 is needed we can fix inet_ntop.
2013-03-04 14:48:18 -08:00

17 lines
380 B
C++

#ifndef _NET_RESOLVE_H
#define _NET_RESOLVE_H
namespace net {
// Strictly only required on Win32, but all platforms should call it.
void Init();
void Shutdown();
// use free() to free the returned string.
char *DNSResolveTry(const char *host, const char **err);
char *DNSResolve(const char *host);
int inet_pton(int af, const char* src, void* dst);
} // namespace net
#endif