14#ifndef __PSPNET_ADHOC_H__
15#define __PSPNET_ADHOC_H__
int sceNetAdhocGameModeDeleteReplica(int id)
Delete peer game object type data.
int sceNetAdhocPtpSend(int id, void *data, int *datasize, unsigned int timeout, int nonblock)
Send data.
int sceNetAdhocGameModeUpdateMaster(void)
Update own game object type data.
int sceNetAdhocGameModeDeleteMaster(void)
Delete own game object type data.
int sceNetAdhocPdpCreate(unsigned char *mac, unsigned short port, unsigned int bufsize, int unk1)
Create a PDP object.
int sceNetAdhocPtpAccept(int id, unsigned char *mac, unsigned short *port, unsigned int timeout, int nonblock)
Accept an incoming PTP connection.
int sceNetAdhocPtpRecv(int id, void *data, int *datasize, unsigned int timeout, int nonblock)
Receive data.
int sceNetAdhocTerm(void)
Terminate the adhoc library.
int sceNetAdhocPtpConnect(int id, unsigned int timeout, int nonblock)
Wait for connection created by sceNetAdhocPtpOpen()
int sceNetAdhocPtpFlush(int id, unsigned int timeout, int nonblock)
Wait for data in the buffer to be sent.
int sceNetAdhocPdpDelete(int id, int unk1)
Delete a PDP object.
int sceNetAdhocInit(void)
Initialise the adhoc library.
int sceNetAdhocPtpClose(int id, int unk1)
Close a socket.
int sceNetAdhocGameModeCreateMaster(void *data, int size)
Create own game object type data.
int sceNetAdhocPtpOpen(unsigned char *srcmac, unsigned short srcport, unsigned char *destmac, unsigned short destport, unsigned int bufsize, unsigned int delay, int count, int unk1)
Open a PTP connection.
int sceNetAdhocPdpRecv(int id, unsigned char *srcMacAddr, unsigned short *port, void *data, void *dataLength, unsigned int timeout, int nonblock)
Receive a PDP packet.
int sceNetAdhocPtpListen(unsigned char *srcmac, unsigned short srcport, unsigned int bufsize, unsigned int delay, int count, int queue, int unk1)
Wait for an incoming PTP connection.
int sceNetAdhocGetPtpStat(int *size, ptpStatStruct *stat)
Get the status of all PTP objects.
int sceNetAdhocGameModeUpdateReplica(int id, int unk1)
Update peer game object type data.
int sceNetAdhocGetPdpStat(int *size, pdpStatStruct *stat)
Get the status of all PDP objects.
int sceNetAdhocPdpSend(int id, unsigned char *destMacAddr, unsigned short port, void *data, unsigned int len, unsigned int timeout, int nonblock)
Set a PDP packet to a destination.
int sceNetAdhocGameModeCreateReplica(unsigned char *mac, void *data, int size)
Create peer game object type data.
unsigned char size
Definition pspsysmem_kernel.h:6
float x
Definition psptypes.h:0
PDP status structure.
Definition pspnet_adhoc.h:91
unsigned short port
Port.
Definition pspnet_adhoc.h:99
unsigned int rcvdData
Bytes received.
Definition pspnet_adhoc.h:101
int pdpId
pdp ID
Definition pspnet_adhoc.h:95
unsigned char mac[6]
MAC address.
Definition pspnet_adhoc.h:97
struct pdpStatStruct * next
Pointer to next PDP structure in list.
Definition pspnet_adhoc.h:93
PTP status structure.
Definition pspnet_adhoc.h:274
int unk1
Unknown.
Definition pspnet_adhoc.h:292
unsigned char mac[6]
MAC address.
Definition pspnet_adhoc.h:280
unsigned int sentData
Bytes sent.
Definition pspnet_adhoc.h:288
int ptpId
ptp ID
Definition pspnet_adhoc.h:278
unsigned char peermac[6]
Peer MAC address.
Definition pspnet_adhoc.h:282
unsigned short peerport
Peer Port.
Definition pspnet_adhoc.h:286
unsigned int rcvdData
Bytes received.
Definition pspnet_adhoc.h:290
unsigned short port
Port.
Definition pspnet_adhoc.h:284
struct ptpStatStruct * next
Pointer to next PTP structure in list.
Definition pspnet_adhoc.h:276