pspnet_inet.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_inet.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_inet.h 1541 2005-12-08 05:49:20Z mrbrown $
00013  */
00014 
00015 #ifndef PSPNET_INET_H
00016 #define PSPNET_INET_H
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 int sceNetInetInit(void);
00023 int sceNetInetTerm(void);
00024 
00025 /* The real sceNetInet socket prototypes are in <sys/socket.h>. */
00026 #ifdef DOXYGEN
00027 int     sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen);
00028 int     sceNetInetBind(int s, const struct sockaddr *my_addr, socklen_t addrlen);
00029 int     sceNetInetConnect(int s, const struct sockaddr *serv_addr, socklen_t addrlen);
00030 int     sceNetInetGetsockopt(int s, int level, int optname, void *optval, socklen_t *optlen);
00031 int     sceNetInetListen(int s, int backlog);
00032 size_t  sceNetInetRecv(int s, void *buf, size_t len, int flags);
00033 size_t  sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen);
00034 size_t  sceNetInetSend(int s, const void *buf, size_t len, int flags);
00035 size_t  sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
00036 int     sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
00037 int     sceNetInetShutdown(int s, int how);
00038 int     sceNetInetSocket(int domain, int type, int protocol);
00039 int sceNetInetClose(int s);
00040 int sceNetInetGetErrno(void);
00041 #endif /* DOXYGEN */
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 
00047 #endif /* PSPNET_INET_H */

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