pspnet_adhoc.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_adhoc.h - PSP Adhoc networking libraries.
00007  *
00008  * Copyright (c) 2006 James F.
00009  *
00010  * Based on the adhoc code in SMS Plus
00011  * 
00012  * $Id: pspnet_adhoc.h 2252 2007-06-07 04:27:31Z oopo $
00013  */
00014 #ifndef __PSPNET_ADHOC_H__
00015 #define __PSPNET_ADHOC_H__
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00026 int sceNetAdhocInit( void );
00027 
00033 int sceNetAdhocTerm( void );
00034 
00045 int sceNetAdhocPdpCreate(unsigned char *mac, unsigned short port, unsigned int unk2, int unk3);
00046 
00055 int sceNetAdhocPdpDelete(int id, int unk1); 
00056 
00070 int sceNetAdhocPdpSend(int id, unsigned char *destMacAddr, unsigned short port, void *data, unsigned int len, int unk6, int unk7); 
00071 
00085 int sceNetAdhocPdpRecv(int id, unsigned char *srcMacAddr, unsigned short *port, void *data, void *dataLength, int unk6, int unk7);
00086 
00090 typedef struct pdpStatStruct
00091 {
00093         struct pdpStatStruct *next;
00095         int pdpId;
00097         unsigned char mac[6];
00099         unsigned short port;
00101         unsigned int rcvdData;
00102 } pdpStatStruct;
00103 
00112 int sceNetAdhocGetPdpStat(int *size, pdpStatStruct *stat);
00113 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 
00118 #endif

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