vitasdk
Documentation of the vitasdk

Exports for User. More...

Data Structures

union  SceNetCtlInfo
 
struct  SceNetCtlNatInfo
 
struct  SceNetCtlAdhocPeerInfo
 

Macros

#define SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX   64
 
#define SCE_NETCTL_INFO_SSID_LEN_MAX   32
 

Typedefs

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

Enumerations

enum  SceNetCtlInfoType {
  SCE_NETCTL_INFO_GET_CNF_NAME = 1 , 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
}
 
enum  SceNetCtlState { SCE_NETCTL_STATE_DISCONNECTED , SCE_NETCTL_STATE_CONNECTING , SCE_NETCTL_STATE_FINALIZING , SCE_NETCTL_STATE_CONNECTED }
 

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)
 

Variables

char SceNetCtlInfo::cnf_name [SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX+1]
 
unsigned int SceNetCtlInfo::device
 
SceNetEtherAddr SceNetCtlInfo::ether_addr
 
unsigned int SceNetCtlInfo::mtu
 
unsigned int SceNetCtlInfo::link
 
SceNetEtherAddr SceNetCtlInfo::bssid
 
char SceNetCtlInfo::ssid [SCE_NETCTL_INFO_SSID_LEN_MAX+1]
 
unsigned int SceNetCtlInfo::wifi_security
 
unsigned int SceNetCtlInfo::rssi_dbm
 
unsigned int SceNetCtlInfo::rssi_percentage
 
unsigned int SceNetCtlInfo::channel
 
unsigned int SceNetCtlInfo::ip_config
 
char SceNetCtlInfo::dhcp_hostname [256]
 
char SceNetCtlInfo::pppoe_auth_name [128]
 
char SceNetCtlInfo::ip_address [16]
 
char SceNetCtlInfo::netmask [16]
 
char SceNetCtlInfo::default_route [16]
 
char SceNetCtlInfo::primary_dns [16]
 
char SceNetCtlInfo::secondary_dns [16]
 
unsigned int SceNetCtlInfo::http_proxy_config
 
char SceNetCtlInfo::http_proxy_server [256]
 
unsigned int SceNetCtlInfo::http_proxy_port
 
unsigned int SceNetCtlNatInfo::size
 
int SceNetCtlNatInfo::stun_status
 
int SceNetCtlNatInfo::nat_type
 
SceNetInAddr SceNetCtlNatInfo::mapped_addr
 
struct SceNetCtlAdhocPeerInfoSceNetCtlAdhocPeerInfo::next
 
SceNetInAddr SceNetCtlAdhocPeerInfo::inet_addr
 

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




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)

Variable Documentation

◆ cnf_name

char SceNetCtlInfo::cnf_name[SCE_NETCTL_INFO_CONFIG_NAME_LEN_MAX+1]

◆ device

unsigned int SceNetCtlInfo::device

◆ ether_addr

SceNetEtherAddr SceNetCtlInfo::ether_addr

◆ mtu

unsigned int SceNetCtlInfo::mtu

◆ link

unsigned int SceNetCtlInfo::link

◆ bssid

SceNetEtherAddr SceNetCtlInfo::bssid

◆ ssid

char SceNetCtlInfo::ssid[SCE_NETCTL_INFO_SSID_LEN_MAX+1]

◆ wifi_security

unsigned int SceNetCtlInfo::wifi_security

◆ rssi_dbm

unsigned int SceNetCtlInfo::rssi_dbm

◆ rssi_percentage

unsigned int SceNetCtlInfo::rssi_percentage

◆ channel

unsigned int SceNetCtlInfo::channel

◆ ip_config

unsigned int SceNetCtlInfo::ip_config

◆ dhcp_hostname

char SceNetCtlInfo::dhcp_hostname[256]

◆ pppoe_auth_name

char SceNetCtlInfo::pppoe_auth_name[128]

◆ ip_address

char SceNetCtlInfo::ip_address[16]

◆ netmask

char SceNetCtlInfo::netmask[16]

◆ default_route

char SceNetCtlInfo::default_route[16]

◆ primary_dns

char SceNetCtlInfo::primary_dns[16]

◆ secondary_dns

char SceNetCtlInfo::secondary_dns[16]

◆ http_proxy_config

unsigned int SceNetCtlInfo::http_proxy_config

◆ http_proxy_server

char SceNetCtlInfo::http_proxy_server[256]

◆ http_proxy_port

unsigned int SceNetCtlInfo::http_proxy_port

◆ size

unsigned int SceNetCtlNatInfo::size

◆ stun_status

int SceNetCtlNatInfo::stun_status

◆ nat_type

int SceNetCtlNatInfo::nat_type

◆ mapped_addr

SceNetInAddr SceNetCtlNatInfo::mapped_addr

◆ next

struct SceNetCtlAdhocPeerInfo* SceNetCtlAdhocPeerInfo::next

◆ inet_addr

SceNetInAddr SceNetCtlAdhocPeerInfo::inet_addr