vitasdk
Documentation of the vitasdk
netctl.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/net/net.h>

Go to the source code of this file.

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)