pspsdk-1.0+beta2
|
Go to the source code of this file.
Data Structures | |
struct | productStruct |
Product structure. More... | |
struct | SceNetAdhocctlPeerInfo |
Peer info structure. More... | |
struct | SceNetAdhocctlScanInfo |
Scan info structure. More... | |
struct | SceNetAdhocctlGameModeInfo |
struct | SceNetAdhocctlParams |
Params structure. More... |
Typedefs | |
typedef void(* | sceNetAdhocctlHandler )(int flag, int error, void *unknown) |
Functions | |
int | sceNetAdhocctlInit (int stacksize, int priority, struct productStruct *product) |
Initialise the Adhoc control library. | |
int | sceNetAdhocctlTerm (void) |
Terminate the Adhoc control library. | |
int | sceNetAdhocctlConnect (const char *name) |
Connect to the Adhoc control. | |
int | sceNetAdhocctlDisconnect (void) |
Disconnect from the Adhoc control. | |
int | sceNetAdhocctlGetState (int *event) |
Get the state of the Adhoc control. | |
int | sceNetAdhocctlCreate (const char *name) |
Connect to the Adhoc control (as a host) | |
int | sceNetAdhocctlJoin (struct SceNetAdhocctlScanInfo *scaninfo) |
Connect to the Adhoc control (as a client) | |
int | sceNetAdhocctlGetAdhocId (struct productStruct *product) |
Get the adhoc ID. | |
int | sceNetAdhocctlCreateEnterGameMode (const char *name, int unknown, int num, unsigned char *macs, unsigned int timeout, int unknown2) |
Connect to the Adhoc control game mode (as a host) | |
int | sceNetAdhocctlJoinEnterGameMode (const char *name, unsigned char *hostmac, unsigned int timeout, int unknown) |
Connect to the Adhoc control game mode (as a client) | |
int | sceNetAdhocctlGetGameModeInfo (struct SceNetAdhocctlGameModeInfo *gamemodeinfo) |
Get game mode information. | |
int | sceNetAdhocctlExitGameMode (void) |
Exit game mode. | |
int | sceNetAdhocctlGetPeerList (int *length, void *buf) |
Get a list of peers. | |
int | sceNetAdhocctlGetPeerInfo (unsigned char *mac, int size, struct SceNetAdhocctlPeerInfo *peerinfo) |
Get peer information. | |
int | sceNetAdhocctlScan (void) |
Scan the adhoc channels. | |
int | sceNetAdhocctlGetScanInfo (int *length, void *buf) |
Get the results of a scan. | |
int | sceNetAdhocctlAddHandler (sceNetAdhocctlHandler handler, void *unknown) |
Register an adhoc event handler. | |
int | sceNetAdhocctlDelHandler (int id) |
Delete an adhoc event handler. | |
int | sceNetAdhocctlGetNameByAddr (unsigned char *mac, char *nickname) |
Get nickname from a mac address. | |
int | sceNetAdhocctlGetAddrByName (char *nickname, int *length, void *buf) |
Get mac address from nickname. | |
int | sceNetAdhocctlGetParameter (struct SceNetAdhocctlParams *params) |
Get Adhocctl parameter. |
Variables | |
struct productStruct | productStruct |
typedef void(* sceNetAdhocctlHandler)(int flag, int error, void *unknown) |
int sceNetAdhocctlAddHandler | ( | sceNetAdhocctlHandler | handler, |
void * | unknown | ||
) |
Register an adhoc event handler.
handler | - The event handler. |
unknown | - Pass NULL. |
int sceNetAdhocctlConnect | ( | const char * | name | ) |
Connect to the Adhoc control.
name | - The name of the connection (maximum 8 alphanumeric characters). |
int sceNetAdhocctlCreate | ( | const char * | name | ) |
Connect to the Adhoc control (as a host)
name | - The name of the connection (maximum 8 alphanumeric characters). |
int sceNetAdhocctlCreateEnterGameMode | ( | const char * | name, |
int | unknown, | ||
int | num, | ||
unsigned char * | macs, | ||
unsigned int | timeout, | ||
int | unknown2 | ||
) |
Connect to the Adhoc control game mode (as a host)
name | - The name of the connection (maximum 8 alphanumeric characters). |
unknown | - Pass 1. |
num | - The total number of players (including the host). |
macs | - A pointer to a list of the participating mac addresses, host first, then clients. |
timeout | - Timeout in microseconds. |
unknown2 | - pass 0. |
int sceNetAdhocctlDelHandler | ( | int | id | ) |
Delete an adhoc event handler.
id | - The handler id as returned by sceNetAdhocctlAddHandler. |
int sceNetAdhocctlDisconnect | ( | void | ) |
Disconnect from the Adhoc control.
int sceNetAdhocctlExitGameMode | ( | void | ) |
Exit game mode.
int sceNetAdhocctlGetAddrByName | ( | char * | nickname, |
int * | length, | ||
void * | buf | ||
) |
Get mac address from nickname.
nickname | - The nickname. |
length | - The length of the list. |
buf | - An allocated area of size length. |
int sceNetAdhocctlGetAdhocId | ( | struct productStruct * | product | ) |
Get the adhoc ID.
product | - A pointer to a productStruct |
int sceNetAdhocctlGetGameModeInfo | ( | struct SceNetAdhocctlGameModeInfo * | gamemodeinfo | ) |
Get game mode information.
gamemodeinfo | - Pointer to store the info. |
int sceNetAdhocctlGetNameByAddr | ( | unsigned char * | mac, |
char * | nickname | ||
) |
Get nickname from a mac address.
mac | - The mac address. |
nickname | - Pointer to a char buffer where the nickname will be stored. |
int sceNetAdhocctlGetParameter | ( | struct SceNetAdhocctlParams * | params | ) |
Get Adhocctl parameter.
params | - Pointer to a SceNetAdhocctlParams |
int sceNetAdhocctlGetPeerInfo | ( | unsigned char * | mac, |
int | size, | ||
struct SceNetAdhocctlPeerInfo * | peerinfo | ||
) |
Get peer information.
mac | - The mac address of the peer. |
size | - Size of peerinfo. |
peerinfo | - Pointer to store the information. |
int sceNetAdhocctlGetPeerList | ( | int * | length, |
void * | buf | ||
) |
Get a list of peers.
length | - The length of the list. |
buf | - An allocated area of size length. |
int sceNetAdhocctlGetScanInfo | ( | int * | length, |
void * | buf | ||
) |
Get the results of a scan.
length | - The length of the list. |
buf | - An allocated area of size length. |
int sceNetAdhocctlGetState | ( | int * | event | ) |
Get the state of the Adhoc control.
event | - Pointer to an integer to receive the status. Can continue when it becomes 1. |
int sceNetAdhocctlInit | ( | int | stacksize, |
int | priority, | ||
struct productStruct * | product | ||
) |
Initialise the Adhoc control library.
stacksize | - Stack size of the adhocctl thread. Set to 0x2000 |
priority | - Priority of the adhocctl thread. Set to 0x30 |
product | - Pass a filled in productStruct |
int sceNetAdhocctlJoin | ( | struct SceNetAdhocctlScanInfo * | scaninfo | ) |
Connect to the Adhoc control (as a client)
scaninfo | - A valid SceNetAdhocctlScanInfo struct that has been filled by sceNetAchocctlGetScanInfo |
int sceNetAdhocctlJoinEnterGameMode | ( | const char * | name, |
unsigned char * | hostmac, | ||
unsigned int | timeout, | ||
int | unknown | ||
) |
Connect to the Adhoc control game mode (as a client)
name | - The name of the connection (maximum 8 alphanumeric characters). |
hostmac | - The mac address of the host. |
timeout | - Timeout in microseconds. |
unknown | - pass 0. |
int sceNetAdhocctlScan | ( | void | ) |
Scan the adhoc channels.
int sceNetAdhocctlTerm | ( | void | ) |
Terminate the Adhoc control library.
struct productStruct productStruct |