pspnet_resolver.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  * pspnet_resolver.h - PSP networking libraries.
00007  *
00008  * Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
00009  *
00010  * Portions based on PspPet's wifi_03 sample code.
00011  * 
00012  * $Id: pspnet_resolver.h 1661 2006-01-08 13:36:35Z tyranid $
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 /* PSPNET_RESOLVER_H */

Generated on Tue Jul 24 15:21:23 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2