pspnet_adhocmatching.h File Reference

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 Documentation

#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 Documentation

typedef void(*) MatchingCallback(int unk1, int event, char *mac2, int optLen, char *optData)

Matching callback.


Function Documentation

int sceNetAdhocMatchingCancelTarget ( int  matchingId,
char *  mac 
)

Cancel a matching target.

Parameters:
matchingId - The ID returned from sceNetAdhocMatchingCreate
mac - The MAC address to cancel
Returns:
0 on success, < 0 on error.

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.

Parameters:
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
Returns:
ID of object on success, < 0 on error.

int sceNetAdhocMatchingDelete ( int  matchingId  ) 

Delete an Adhoc matching object.

Parameters:
matchingId - The ID returned from sceNetAdhocMatchingCreate
Returns:
0 on success, < 0 on error.

int sceNetAdhocMatchingInit ( int  unk1  ) 

Initialise the Adhoc matching library.

Parameters:
unk1 - Pass 0x20000
Returns:
0 on success, < 0 on error

int sceNetAdhocMatchingSelectTarget ( int  matchingId,
char *  mac,
int  unk3,
int  unk4 
)

Select a matching target.

Parameters:
matchingId - The ID returned from sceNetAdhocMatchingCreate
mac - MAC address to select
unk3 - Pass 0
unk4 - Pass 0
Returns:
0 on success, < 0 on error.

int sceNetAdhocMatchingStart ( int  matchingId,
int  unk1,
int  unk2,
int  unk3,
int  unk4,
int  usrDataSize,
char *  usrData 
)

Start a matching object.

Parameters:
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
Returns:
0 on success, < 0 on error

int sceNetAdhocMatchingStop ( int  matchingId  ) 

Stop a matching object.

Parameters:
matchingId - The ID returned from sceNetAdhocMatchingCreate
Returns:
0 on success, < 0 on error.

int sceNetAdhocMatchingTerm ( void   ) 

Terminate the Adhoc matching library.

Returns:
0 on success, < 0 on error


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