Go to the source code of this file.
Defines | |
#define | MATCHING_JOINED 0x1 |
#define | MATCHING_SELECTED 0x2 |
#define | MATCHING_REJECTED 0x4 |
#define | MATCHING_CANCELED 0x5 |
#define | MATCHING_ESTABLISHED 0x7 |
#define | MATCHING_DISCONNECT 0xa |
Typedefs | |
typedef void(*) | MatchingCallback (int unk1, int event, char *mac2, int optLen, char *optData) |
Matching callback. | |
Functions | |
int | sceNetAdhocMatchingInit (int unk1) |
Initialise the Adhoc matching library. | |
int | sceNetAdhocMatchingTerm (void) |
Terminate the Adhoc matching library. | |
int | sceNetAdhocMatchingCreate (int unk1, int unk2, int port, int unk4, int unk5, int unk6, int unk7, int unk8, MatchingCallback callback) |
Create an Adhoc matchine object. | |
int | sceNetAdhocMatchingDelete (int matchingId) |
Delete an Adhoc matching object. | |
int | sceNetAdhocMatchingStart (int matchingId, int unk1, int unk2, int unk3, int unk4, int usrDataSize, char *usrData) |
Start a matching object. | |
int | sceNetAdhocMatchingStop (int matchingId) |
Stop a matching object. | |
int | sceNetAdhocMatchingSelectTarget (int matchingId, char *mac, int unk3, int unk4) |
Select a matching target. | |
int | sceNetAdhocMatchingCancelTarget (int matchingId, char *mac) |
Cancel a matching target. |
#define MATCHING_CANCELED 0x5 |
#define MATCHING_DISCONNECT 0xa |
#define MATCHING_ESTABLISHED 0x7 |
#define MATCHING_JOINED 0x1 |
#define MATCHING_REJECTED 0x4 |
#define MATCHING_SELECTED 0x2 |
typedef void(*) MatchingCallback(int unk1, int event, char *mac2, int optLen, char *optData) |
Matching callback.
int sceNetAdhocMatchingCancelTarget | ( | int | matchingId, | |
char * | mac | |||
) |
Cancel a matching target.
matchingId | - The ID returned from sceNetAdhocMatchingCreate | |
mac | - The MAC address to cancel |
int sceNetAdhocMatchingCreate | ( | int | unk1, | |
int | unk2, | |||
int | port, | |||
int | unk4, | |||
int | unk5, | |||
int | unk6, | |||
int | unk7, | |||
int | unk8, | |||
MatchingCallback | callback | |||
) |
Create an Adhoc matchine object.
unk1 | - Pass 3 | |
unk2 | - Pass 0xA | |
port | - Pass 0x22B | |
unk4 | - Pass 0x800 | |
unk5 | - Pass 0x2DC6C0 | |
unk6 | - Pass 0x5B8D80 | |
unk7 | - Pass 3 | |
unk8 | - Pass 0x7A120 | |
callback | - Callback to be called on matching |
int sceNetAdhocMatchingDelete | ( | int | matchingId | ) |
Delete an Adhoc matching object.
matchingId | - The ID returned from sceNetAdhocMatchingCreate |
int sceNetAdhocMatchingInit | ( | int | unk1 | ) |
Initialise the Adhoc matching library.
unk1 | - Pass 0x20000 |
int sceNetAdhocMatchingSelectTarget | ( | int | matchingId, | |
char * | mac, | |||
int | unk3, | |||
int | unk4 | |||
) |
Select a matching target.
matchingId | - The ID returned from sceNetAdhocMatchingCreate | |
mac | - MAC address to select | |
unk3 | - Pass 0 | |
unk4 | - Pass 0 |
int sceNetAdhocMatchingStart | ( | int | matchingId, | |
int | unk1, | |||
int | unk2, | |||
int | unk3, | |||
int | unk4, | |||
int | usrDataSize, | |||
char * | usrData | |||
) |
Start a matching object.
matchingId | - The ID returned from sceNetAdhocMatchingCreate | |
unk1 | - Pass 0x10 | |
unk2 | - Pass 0x2000 | |
unk3 | - Pass 0x10 | |
unk4 | - Pass 0x2000 | |
usrDataSize | - Size of usrData | |
usrData | - Pointer to block of data passed to callback |
int sceNetAdhocMatchingStop | ( | int | matchingId | ) |
Stop a matching object.
matchingId | - The ID returned from sceNetAdhocMatchingCreate |
int sceNetAdhocMatchingTerm | ( | void | ) |
Terminate the Adhoc matching library.