pspsdk-1.0+beta2
pspnet_apctl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  SceNetApctlInfo

Macros

#define PSP_NET_APCTL_STATE_DISCONNECTED   0
#define PSP_NET_APCTL_STATE_SCANNING   1
#define PSP_NET_APCTL_STATE_JOINING   2
#define PSP_NET_APCTL_STATE_GETTING_IP   3
#define PSP_NET_APCTL_STATE_GOT_IP   4
#define PSP_NET_APCTL_STATE_EAP_AUTH   5
#define PSP_NET_APCTL_STATE_KEY_EXCHANGE   6
#define PSP_NET_APCTL_EVENT_CONNECT_REQUEST   0
#define PSP_NET_APCTL_EVENT_SCAN_REQUEST   1
#define PSP_NET_APCTL_EVENT_SCAN_COMPLETE   2
#define PSP_NET_APCTL_EVENT_ESTABLISHED   3
#define PSP_NET_APCTL_EVENT_GET_IP   4
#define PSP_NET_APCTL_EVENT_DISCONNECT_REQUEST   5
#define PSP_NET_APCTL_EVENT_ERROR   6
#define PSP_NET_APCTL_EVENT_INFO   7
#define PSP_NET_APCTL_EVENT_EAP_AUTH   8
#define PSP_NET_APCTL_EVENT_KEY_EXCHANGE   9
#define PSP_NET_APCTL_EVENT_RECONNECT   10
#define PSP_NET_APCTL_INFO_PROFILE_NAME   0
#define PSP_NET_APCTL_INFO_BSSID   1
#define PSP_NET_APCTL_INFO_SSID   2
#define PSP_NET_APCTL_INFO_SSID_LENGTH   3
#define PSP_NET_APCTL_INFO_SECURITY_TYPE   4
#define PSP_NET_APCTL_INFO_STRENGTH   5
#define PSP_NET_APCTL_INFO_CHANNEL   6
#define PSP_NET_APCTL_INFO_POWER_SAVE   7
#define PSP_NET_APCTL_INFO_IP   8
#define PSP_NET_APCTL_INFO_SUBNETMASK   9
#define PSP_NET_APCTL_INFO_GATEWAY   10
#define PSP_NET_APCTL_INFO_PRIMDNS   11
#define PSP_NET_APCTL_INFO_SECDNS   12
#define PSP_NET_APCTL_INFO_USE_PROXY   13
#define PSP_NET_APCTL_INFO_PROXY_URL   14
#define PSP_NET_APCTL_INFO_PROXY_PORT   15
#define PSP_NET_APCTL_INFO_8021_EAP_TYPE   16
#define PSP_NET_APCTL_INFO_START_BROWSER   17
#define PSP_NET_APCTL_INFO_WIFISP   18
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_NONE   0
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WEP   1
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WPA   2

Typedefs

typedef void(* sceNetApctlHandler )(int oldState, int newState, int event, int error, void *pArg)

Functions

int sceNetApctlInit (int stackSize, int initPriority)
 Init the apctl.
int sceNetApctlTerm (void)
 Terminate the apctl.
int sceNetApctlGetInfo (int code, union SceNetApctlInfo *pInfo)
 Get the apctl information.
int sceNetApctlAddHandler (sceNetApctlHandler handler, void *pArg)
 Add an apctl event handler.
int sceNetApctlDelHandler (int handlerId)
 Delete an apctl event handler.
int sceNetApctlConnect (int connIndex)
 Connect to an access point.
int sceNetApctlDisconnect (void)
 Disconnect from an access point.
int sceNetApctlGetState (int *pState)
 Get the state of the access point connection.

Macro Definition Documentation

#define PSP_NET_APCTL_EVENT_CONNECT_REQUEST   0
#define PSP_NET_APCTL_EVENT_DISCONNECT_REQUEST   5
#define PSP_NET_APCTL_EVENT_EAP_AUTH   8
#define PSP_NET_APCTL_EVENT_ERROR   6
#define PSP_NET_APCTL_EVENT_ESTABLISHED   3
#define PSP_NET_APCTL_EVENT_GET_IP   4
#define PSP_NET_APCTL_EVENT_INFO   7
#define PSP_NET_APCTL_EVENT_KEY_EXCHANGE   9
#define PSP_NET_APCTL_EVENT_RECONNECT   10
#define PSP_NET_APCTL_EVENT_SCAN_COMPLETE   2
#define PSP_NET_APCTL_EVENT_SCAN_REQUEST   1
#define PSP_NET_APCTL_INFO_8021_EAP_TYPE   16
#define PSP_NET_APCTL_INFO_BSSID   1
#define PSP_NET_APCTL_INFO_CHANNEL   6
#define PSP_NET_APCTL_INFO_GATEWAY   10
#define PSP_NET_APCTL_INFO_IP   8
#define PSP_NET_APCTL_INFO_POWER_SAVE   7
#define PSP_NET_APCTL_INFO_PRIMDNS   11
#define PSP_NET_APCTL_INFO_PROFILE_NAME   0
#define PSP_NET_APCTL_INFO_PROXY_PORT   15
#define PSP_NET_APCTL_INFO_PROXY_URL   14
#define PSP_NET_APCTL_INFO_SECDNS   12
#define PSP_NET_APCTL_INFO_SECURITY_TYPE   4
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_NONE   0
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WEP   1
#define PSP_NET_APCTL_INFO_SECURITY_TYPE_WPA   2
#define PSP_NET_APCTL_INFO_SSID   2
#define PSP_NET_APCTL_INFO_SSID_LENGTH   3
#define PSP_NET_APCTL_INFO_START_BROWSER   17
#define PSP_NET_APCTL_INFO_STRENGTH   5
#define PSP_NET_APCTL_INFO_SUBNETMASK   9
#define PSP_NET_APCTL_INFO_USE_PROXY   13
#define PSP_NET_APCTL_INFO_WIFISP   18
#define PSP_NET_APCTL_STATE_DISCONNECTED   0
#define PSP_NET_APCTL_STATE_EAP_AUTH   5
#define PSP_NET_APCTL_STATE_GETTING_IP   3
#define PSP_NET_APCTL_STATE_GOT_IP   4
#define PSP_NET_APCTL_STATE_JOINING   2
#define PSP_NET_APCTL_STATE_KEY_EXCHANGE   6
#define PSP_NET_APCTL_STATE_SCANNING   1

Typedef Documentation

typedef void(* sceNetApctlHandler)(int oldState, int newState, int event, int error, void *pArg)

Function Documentation

int sceNetApctlAddHandler ( sceNetApctlHandler  handler,
void *  pArg 
)

Add an apctl event handler.

Parameters
handler- Pointer to the event handler function.
pArg- Value to be passed to the pArg parameter of the handler function.
Returns
A handler id or < 0 on error.
int sceNetApctlConnect ( int  connIndex)

Connect to an access point.

Parameters
connIndex- The index of the connection.
Returns
< 0 on error.
int sceNetApctlDelHandler ( int  handlerId)

Delete an apctl event handler.

Parameters
handlerid- A handler as created returned from sceNetApctlAddHandler.
Returns
< 0 on error.
int sceNetApctlDisconnect ( void  )

Disconnect from an access point.

Returns
< 0 on error.
int sceNetApctlGetInfo ( int  code,
union SceNetApctlInfo pInfo 
)

Get the apctl information.

Parameters
code- One of the PSP_NET_APCTL_INFO_* defines.
pInfo- Pointer to a SceNetApctlInfo.
Returns
< 0 on error.
int sceNetApctlGetState ( int *  pState)

Get the state of the access point connection.

Parameters
pState- Pointer to receive the current state (one of the PSP_NET_APCTL_STATE_* defines).
Returns
< 0 on error.
int sceNetApctlInit ( int  stackSize,
int  initPriority 
)

Init the apctl.

Parameters
stackSize- The stack size of the internal thread.
initPriority- The priority of the internal thread.
Returns
< 0 on error.
int sceNetApctlTerm ( void  )

Terminate the apctl.

Returns
< 0 on error.