00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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