14#ifndef __PSPNETMATCHING_ADHOC_H__
15#define __PSPNETMATCHING_ADHOC_H__
int sceNetAdhocMatchingSendData(int matchingid, unsigned char *mac, int datalen, void *data)
Send data to a matching target.
pspAdhocMatchingModes
Matching modes used in sceNetAdhocMatchingCreate.
Definition pspnet_adhocmatching.h:58
@ PSP_ADHOC_MATCHING_MODE_PTP
Peer to peer.
Definition pspnet_adhocmatching.h:64
@ PSP_ADHOC_MATCHING_MODE_HOST
Host.
Definition pspnet_adhocmatching.h:60
@ PSP_ADHOC_MATCHING_MODE_CLIENT
Client.
Definition pspnet_adhocmatching.h:62
int sceNetAdhocMatchingSelectTarget(int matchingid, unsigned char *mac, int optlen, void *optdata)
Select a matching target.
int sceNetAdhocMatchingStop(int matchingid)
Stop a matching object.
int sceNetAdhocMatchingStart(int matchingid, int evthpri, int evthstack, int inthpri, int inthstack, int optlen, void *optdata)
Start a matching object.
int sceNetAdhocMatchingDelete(int matchingid)
Delete an Adhoc matching object.
int sceNetAdhocMatchingTerm(void)
Terminate the Adhoc matching library.
int sceNetAdhocMatchingGetHelloOpt(int matchingid, int *optlen, void *optdata)
Get the optional hello message.
int sceNetAdhocMatchingCancelTargetWithOpt(int matchingid, unsigned char *mac, int optlen, void *optdata)
Cancel a matching target (with optional data)
void(* pspAdhocMatchingCallback)(int matchingid, int event, unsigned char *mac, int optlen, void *optdata)
Matching callback.
Definition pspnet_adhocmatching.h:107
int sceNetAdhocMatchingCreate(int mode, int maxpeers, unsigned short port, int bufsize, unsigned int hellodelay, unsigned int pingdelay, int initcount, unsigned int msgdelay, pspAdhocMatchingCallback callback)
Create an Adhoc matching object.
int sceNetAdhocMatchingGetPoolMaxAlloc(void)
Get the maximum memory usage by the matching library.
int sceNetAdhocMatchingInit(int memsize)
Initialise the Adhoc matching library.
int sceNetAdhocMatchingSetHelloOpt(int matchingid, int optlen, void *optdata)
Set the optional hello message.
int sceNetAdhocMatchingAbortSendData(int matchingid, unsigned char *mac)
Abort a data send to a matching target.
int sceNetAdhocMatchingGetPoolStat(struct pspAdhocPoolStat *poolstat)
Get the status of the memory pool used by the matching library.
pspAdhocMatchingEvents
Matching events used in pspAdhocMatchingCallback.
Definition pspnet_adhocmatching.h:25
@ PSP_ADHOC_MATCHING_EVENT_DATA_CONFIRM
Data acknowledged event.
Definition pspnet_adhocmatching.h:49
@ PSP_ADHOC_MATCHING_EVENT_LEFT
Target left matching.
Definition pspnet_adhocmatching.h:31
@ PSP_ADHOC_MATCHING_EVENT_JOIN
Join request.
Definition pspnet_adhocmatching.h:29
@ PSP_ADHOC_MATCHING_EVENT_DATA
Data received event.
Definition pspnet_adhocmatching.h:47
@ PSP_ADHOC_MATCHING_EVENT_DATA_TIMEOUT
Data timeout event.
Definition pspnet_adhocmatching.h:51
@ PSP_ADHOC_MATCHING_EVENT_ACCEPT
Join request accepted.
Definition pspnet_adhocmatching.h:37
@ PSP_ADHOC_MATCHING_EVENT_CANCEL
Join request cancelled.
Definition pspnet_adhocmatching.h:35
@ PSP_ADHOC_MATCHING_EVENT_COMPLETE
Matching is complete.
Definition pspnet_adhocmatching.h:39
@ PSP_ADHOC_MATCHING_EVENT_DISCONNECT
Peer disconnect event.
Definition pspnet_adhocmatching.h:45
@ PSP_ADHOC_MATCHING_EVENT_ERROR
Error event.
Definition pspnet_adhocmatching.h:43
@ PSP_ADHOC_MATCHING_EVENT_REJECT
Join request rejected.
Definition pspnet_adhocmatching.h:33
@ PSP_ADHOC_MATCHING_EVENT_HELLO
Hello event.
Definition pspnet_adhocmatching.h:27
@ PSP_ADHOC_MATCHING_EVENT_TIMEOUT
Ping timeout event.
Definition pspnet_adhocmatching.h:41
int sceNetAdhocMatchingGetMembers(int matchingid, int *length, void *buf)
Get a list of matching members.
int sceNetAdhocMatchingCancelTarget(int matchingid, unsigned char *mac)
Cancel a matching target.
float x
Definition psptypes.h:0
Linked list for sceNetAdhocMatchingGetMembers.
Definition pspnet_adhocmatching.h:71
struct pspAdhocMatchingMember * next
Definition pspnet_adhocmatching.h:72
unsigned char mac[6]
Definition pspnet_adhocmatching.h:73
char unknown[2]
Definition pspnet_adhocmatching.h:74
Linked list for sceNetAdhocMatchingGetMembers.
Definition pspnet_adhocmatching.h:81
int size
Size of the pool.
Definition pspnet_adhocmatching.h:83
int maxsize
Maximum size of the pool.
Definition pspnet_adhocmatching.h:85
int freesize
Unused memory in the pool.
Definition pspnet_adhocmatching.h:87