vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceNetCtl_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x100, SceNetCtlInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceNetCtlNatInfo)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceNetCtlAdhocPeerInfo)
 
int sceNetCtlInit ()
 
void sceNetCtlTerm ()
 
int sceNetCtlCheckCallback ()
 
int sceNetCtlInetGetResult (int eventType, int *errorCode)
 
int sceNetCtlAdhocGetResult (int eventType, int *errorCode)
 
int sceNetCtlInetGetInfo (int code, SceNetCtlInfo *info)
 
int sceNetCtlInetGetState (int *state)
 
int sceNetCtlGetNatInfo (SceNetCtlNatInfo *natinfo)
 
int sceNetCtlInetRegisterCallback (SceNetCtlCallback func, void *arg, int *cid)
 
int sceNetCtlInetUnregisterCallback (int cid)
 
int sceNetCtlAdhocRegisterCallback (SceNetCtlCallback func, void *arg, int *cid)
 
int sceNetCtlAdhocUnregisterCallback (int cid)
 
int sceNetCtlAdhocGetState (int *state)
 
int sceNetCtlAdhocDisconnect ()
 
int sceNetCtlAdhocGetPeerList (unsigned int *buflen, void *buf)
 
int sceNetCtlAdhocGetInAddr (SceNetInAddr *inaddr)
 

Typedefs

typedef void *(* SceNetCtlCallback) (int event_type, void *arg)
 

Macros

#define SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX   64
 
#define SCE_NETCTL_INFO_SSID_LEN_MAX   32
 

Data Structure Documentation

◆ SceNetCtlInfo

union SceNetCtlInfo
Data Fields
char cnf_name[SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX+1]
unsigned int device
SceNetEtherAddr ether_addr
unsigned int mtu
unsigned int link
SceNetEtherAddr bssid
char ssid[SCE_NETCTL_INFO_SSID_LEN_MAX+1]
unsigned int wifi_security
unsigned int rssi_dbm
unsigned int rssi_percentage
unsigned int channel
unsigned int ip_config
char dhcp_hostname[256]
char pppoe_auth_name[128]
char ip_address[16]
char netmask[16]
char default_route[16]
char primary_dns[16]
char secondary_dns[16]
unsigned int http_proxy_config
char http_proxy_server[256]
unsigned int http_proxy_port

◆ SceNetCtlNatInfo

struct SceNetCtlNatInfo
Data Fields
unsigned int size
int stun_status
int nat_type
SceNetInAddr mapped_addr

◆ SceNetCtlAdhocPeerInfo

struct SceNetCtlAdhocPeerInfo
Data Fields
struct SceNetCtlAdhocPeerInfo * next
SceNetInAddr inet_addr

Macro Definition Documentation

◆ SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX

#define SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX   64

◆ SCE_NETCTL_INFO_SSID_LEN_MAX

#define SCE_NETCTL_INFO_SSID_LEN_MAX   32

Typedef Documentation

◆ SceNetCtlCallback

typedef void*(* SceNetCtlCallback) (int event_type, void *arg)

Enumeration Type Documentation

◆ SceNetCtlInfoType

Enumerator
SCE_NETCTL_INFO_GET_CNF_NAME 
SCE_NETCTL_INFO_GET_DEVICE 
SCE_NETCTL_INFO_GET_ETHER_ADDR 
SCE_NETCTL_INFO_GET_MTU 
SCE_NETCTL_INFO_GET_LINK 
SCE_NETCTL_INFO_GET_BSSID 
SCE_NETCTL_INFO_GET_SSID 
SCE_NETCTL_INFO_GET_WIFI_SECURITY 
SCE_NETCTL_INFO_GET_RSSI_DBM 
SCE_NETCTL_INFO_GET_RSSI_PERCENTAGE 
SCE_NETCTL_INFO_GET_CHANNEL 
SCE_NETCTL_INFO_GET_IP_CONFIG 
SCE_NETCTL_INFO_GET_DHCP_HOSTNAME 
SCE_NETCTL_INFO_GET_PPPOE_AUTH_NAME 
SCE_NETCTL_INFO_GET_IP_ADDRESS 
SCE_NETCTL_INFO_GET_NETMASK 
SCE_NETCTL_INFO_GET_DEFAULT_ROUTE 
SCE_NETCTL_INFO_GET_PRIMARY_DNS 
SCE_NETCTL_INFO_GET_SECONDARY_DNS 
SCE_NETCTL_INFO_GET_HTTP_PROXY_CONFIG 
SCE_NETCTL_INFO_GET_HTTP_PROXY_SERVER 
SCE_NETCTL_INFO_GET_HTTP_PROXY_PORT 

◆ SceNetCtlState

Enumerator
SCE_NETCTL_STATE_DISCONNECTED 
SCE_NETCTL_STATE_CONNECTING 
SCE_NETCTL_STATE_FINALIZING 
SCE_NETCTL_STATE_CONNECTED 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/3]

VITASDK_BUILD_ASSERT_EQ ( 0x100  ,
SceNetCtlInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/3]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceNetCtlNatInfo   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/3]

VITASDK_BUILD_ASSERT_EQ ( ,
SceNetCtlAdhocPeerInfo   
)

◆ sceNetCtlInit()

int sceNetCtlInit ( )

◆ sceNetCtlTerm()

void sceNetCtlTerm ( )

◆ sceNetCtlCheckCallback()

int sceNetCtlCheckCallback ( )

◆ sceNetCtlInetGetResult()

int sceNetCtlInetGetResult ( int  eventType,
int *  errorCode 
)

◆ sceNetCtlAdhocGetResult()

int sceNetCtlAdhocGetResult ( int  eventType,
int *  errorCode 
)

◆ sceNetCtlInetGetInfo()

int sceNetCtlInetGetInfo ( int  code,
SceNetCtlInfo info 
)

◆ sceNetCtlInetGetState()

int sceNetCtlInetGetState ( int *  state)

◆ sceNetCtlGetNatInfo()

int sceNetCtlGetNatInfo ( SceNetCtlNatInfo natinfo)

◆ sceNetCtlInetRegisterCallback()

int sceNetCtlInetRegisterCallback ( SceNetCtlCallback  func,
void *  arg,
int *  cid 
)

◆ sceNetCtlInetUnregisterCallback()

int sceNetCtlInetUnregisterCallback ( int  cid)

◆ sceNetCtlAdhocRegisterCallback()

int sceNetCtlAdhocRegisterCallback ( SceNetCtlCallback  func,
void *  arg,
int *  cid 
)

◆ sceNetCtlAdhocUnregisterCallback()

int sceNetCtlAdhocUnregisterCallback ( int  cid)

◆ sceNetCtlAdhocGetState()

int sceNetCtlAdhocGetState ( int *  state)

◆ sceNetCtlAdhocDisconnect()

int sceNetCtlAdhocDisconnect ( )

◆ sceNetCtlAdhocGetPeerList()

int sceNetCtlAdhocGetPeerList ( unsigned int *  buflen,
void *  buf 
)

◆ sceNetCtlAdhocGetInAddr()

int sceNetCtlAdhocGetInAddr ( SceNetInAddr inaddr)