PSPSDK 2024-12-16
Loading...
Searching...
No Matches
psputility_netparam.h File Reference
#include <psptypes.h>
Include dependency graph for psputility_netparam.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  netData
 Datatype for sceUtilityGetNetParam since it can return a u32 or a string we use a union to avoid ugly casting. More...
 

Macros

#define PSP_NETPARAM_NAME   0
 
#define PSP_NETPARAM_SSID   1
 
#define PSP_NETPARAM_SECURE   2
 
#define PSP_NETPARAM_WEPKEY   3
 
#define PSP_NETPARAM_IS_STATIC_IP   4
 
#define PSP_NETPARAM_IP   5
 
#define PSP_NETPARAM_NETMASK   6
 
#define PSP_NETPARAM_ROUTE   7
 
#define PSP_NETPARAM_MANUAL_DNS   8
 
#define PSP_NETPARAM_PRIMARYDNS   9
 
#define PSP_NETPARAM_SECONDARYDNS   10
 
#define PSP_NETPARAM_PROXY_USER   11
 
#define PSP_NETPARAM_PROXY_PASS   12
 
#define PSP_NETPARAM_USE_PROXY   13
 
#define PSP_NETPARAM_PROXY_SERVER   14
 
#define PSP_NETPARAM_PROXY_PORT   15
 
#define PSP_NETPARAM_UNKNOWN1   16
 
#define PSP_NETPARAM_UNKNOWN2   17
 
#define PSP_NETPARAM_ERROR_BAD_NETCONF   0x80110601
 
#define PSP_NETPARAM_ERROR_BAD_PARAM   0x80110604
 

Functions

int sceUtilityCheckNetParam (int id)
 Check existance of a Net Configuration.
 
int sceUtilityGetNetParam (int conf, int param, netData *data)
 Get Net Configuration Parameter.
 
int sceUtilityCreateNetParam (int conf)
 Create a new Network Configuration.
 
int sceUtilitySetNetParam (int param, const void *val)
 Sets a network parameter.
 
int sceUtilityCopyNetParam (int src, int dest)
 Copies a Network Configuration to another.
 
int sceUtilityDeleteNetParam (int conf)
 Deletes a Network Configuration.
 

Macro Definition Documentation

◆ PSP_NETPARAM_ERROR_BAD_NETCONF

#define PSP_NETPARAM_ERROR_BAD_NETCONF   0x80110601

◆ PSP_NETPARAM_ERROR_BAD_PARAM

#define PSP_NETPARAM_ERROR_BAD_PARAM   0x80110604

◆ PSP_NETPARAM_IP

#define PSP_NETPARAM_IP   5

◆ PSP_NETPARAM_IS_STATIC_IP

#define PSP_NETPARAM_IS_STATIC_IP   4

◆ PSP_NETPARAM_MANUAL_DNS

#define PSP_NETPARAM_MANUAL_DNS   8

◆ PSP_NETPARAM_NAME

#define PSP_NETPARAM_NAME   0

◆ PSP_NETPARAM_NETMASK

#define PSP_NETPARAM_NETMASK   6

◆ PSP_NETPARAM_PRIMARYDNS

#define PSP_NETPARAM_PRIMARYDNS   9

◆ PSP_NETPARAM_PROXY_PASS

#define PSP_NETPARAM_PROXY_PASS   12

◆ PSP_NETPARAM_PROXY_PORT

#define PSP_NETPARAM_PROXY_PORT   15

◆ PSP_NETPARAM_PROXY_SERVER

#define PSP_NETPARAM_PROXY_SERVER   14

◆ PSP_NETPARAM_PROXY_USER

#define PSP_NETPARAM_PROXY_USER   11

◆ PSP_NETPARAM_ROUTE

#define PSP_NETPARAM_ROUTE   7

◆ PSP_NETPARAM_SECONDARYDNS

#define PSP_NETPARAM_SECONDARYDNS   10

◆ PSP_NETPARAM_SECURE

#define PSP_NETPARAM_SECURE   2

◆ PSP_NETPARAM_SSID

#define PSP_NETPARAM_SSID   1

◆ PSP_NETPARAM_UNKNOWN1

#define PSP_NETPARAM_UNKNOWN1   16

◆ PSP_NETPARAM_UNKNOWN2

#define PSP_NETPARAM_UNKNOWN2   17

◆ PSP_NETPARAM_USE_PROXY

#define PSP_NETPARAM_USE_PROXY   13

◆ PSP_NETPARAM_WEPKEY

#define PSP_NETPARAM_WEPKEY   3

Function Documentation

◆ sceUtilityCheckNetParam()

int sceUtilityCheckNetParam ( int  id)

Check existance of a Net Configuration.

Parameters
id- id of net Configuration (1 to n)
Returns
0 on success,

◆ sceUtilityCopyNetParam()

int sceUtilityCopyNetParam ( int  src,
int  dest 
)

Copies a Network Configuration to another.

Parameters
src- Source Net Configuration number (0 to n)
dest- Destination Net Configuration number (0 to n)
Returns
0 on success

◆ sceUtilityCreateNetParam()

int sceUtilityCreateNetParam ( int  conf)

Create a new Network Configuration.

Note
This creates a new configuration at conf and clears 0
Parameters
conf- Net Configuration number (1 to n)
Returns
0 on success

◆ sceUtilityDeleteNetParam()

int sceUtilityDeleteNetParam ( int  conf)

Deletes a Network Configuration.

Parameters
conf- Net Configuration number (1 to n)
Returns
0 on success

◆ sceUtilityGetNetParam()

int sceUtilityGetNetParam ( int  conf,
int  param,
netData data 
)

Get Net Configuration Parameter.

Parameters
conf- Net Configuration number (1 to n) (0 returns valid but seems to be a copy of the last config requested)
param- which parameter to get
data- parameter data
Returns
0 on success,

◆ sceUtilitySetNetParam()

int sceUtilitySetNetParam ( int  param,
const void val 
)

Sets a network parameter.

Note
This sets only to configuration 0
Parameters
param- Which parameter to set
val- Pointer to the the data to set
Returns
0 on success