00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PSPNET_RESOLVER_H
00016 #define PSPNET_RESOLVER_H
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 #include <netinet/in.h>
00023
00029 int sceNetResolverInit(void);
00030
00040 int sceNetResolverCreate(int *rid, void *buf, SceSize buflen);
00041
00049 int sceNetResolverDelete(int rid);
00050
00062 int sceNetResolverStartNtoA(int rid, const char *hostname, struct in_addr* addr, unsigned int timeout, int retry);
00063
00076 int sceNetResolverStartAtoN(int rid, const struct in_addr* addr, char *hostname, SceSize hostname_len, unsigned int timeout, int retry);
00077
00085 int sceNetResolverStop(int rid);
00086
00092 int sceNetResolverTerm(void);
00093
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097
00098 #endif