vitasdk
Documentation of the vitasdk

Exports for User. More...

Data Structures

struct  SceNetAdhocPollSd
 
struct  SceNetAdhocPdpStat
 
struct  SceNetAdhocPtpStat
 

Macros

#define SCE_NET_ADHOC_F_ALERTALL
 
#define SCE_NET_ADHOC_PDP_MFS   1444
 
#define SCE_NET_ADHOC_PDP_MTU   65523
 
#define SCE_NET_ADHOC_PTP_MSS   1444
 

Enumerations

enum  ScePspnetAdhocErrorCode {
  SCE_ERROR_NET_ADHOC_INVALID_SOCKET_ID = 0x80410701 , SCE_ERROR_NET_ADHOC_INVALID_ADDR = 0x80410702 , SCE_ERROR_NET_ADHOC_INVALID_PORT = 0x80410703 , SCE_ERROR_NET_ADHOC_INVALID_BUFLEN = 0x80410704 ,
  SCE_ERROR_NET_ADHOC_INVALID_DATALEN = 0x80410705 , SCE_ERROR_NET_ADHOC_NOT_ENOUGH_SPACE = 0x80410706 , SCE_ERROR_NET_ADHOC_SOCKET_DELETED = 0x80410707 , SCE_ERROR_NET_ADHOC_SOCKET_ALERTED = 0x80410708 ,
  SCE_ERROR_NET_ADHOC_WOULD_BLOCK = 0x80410709 , SCE_ERROR_NET_ADHOC_PORT_IN_USE = 0x8041070A , SCE_ERROR_NET_ADHOC_NOT_CONNECTED = 0x8041070B , SCE_ERROR_NET_ADHOC_DISCONNECTED = 0x8041070C ,
  SCE_ERROR_NET_ADHOC_NOT_OPENED = 0x8041070D , SCE_ERROR_NET_ADHOC_NOT_LISTENED = 0x8041070E , SCE_ERROR_NET_ADHOC_SOCKET_ID_NOT_AVAIL = 0x8041070F , SCE_ERROR_NET_ADHOC_PORT_NOT_AVAIL = 0x80410710 ,
  SCE_ERROR_NET_ADHOC_INVALID_ARG = 0x80410711 , SCE_ERROR_NET_ADHOC_NOT_INITIALIZED = 0x80410712 , SCE_ERROR_NET_ADHOC_ALREADY_INITIALIZED = 0x80410713 , SCE_ERROR_NET_ADHOC_BUSY = 0x80410714 ,
  SCE_ERROR_NET_ADHOC_TIMEOUT = 0x80410715 , SCE_ERROR_NET_ADHOC_NO_ENTRY = 0x80410716 , SCE_ERROR_NET_ADHOC_EXCEPTION_EVENT = 0x80410717 , SCE_ERROR_NET_ADHOC_CONNECTION_REFUSED = 0x80410718 ,
  SCE_ERROR_NET_ADHOC_THREAD_ABORTED = 0x80410719 , SCE_ERROR_NET_ADHOC_ALREADY_CREATED = 0x8041071A , SCE_ERROR_NET_ADHOC_NOT_IN_GAMEMODE = 0x8041071B , SCE_ERROR_NET_ADHOC_NOT_CREATED = 0x8041071C ,
  SCE_ERROR_NET_ADHOC_INVALID_ALIGNMENT = 0x8041071D
}
 
enum  ScePspnetAdhocEvent {
  SCE_NET_ADHOC_EV_SEND = 0x0001 , SCE_NET_ADHOC_EV_RECV = 0x0002 , SCE_NET_ADHOC_EV_CONNECT = 0x0004 , SCE_NET_ADHOC_EV_ACCEPT = 0x0008 ,
  SCE_NET_ADHOC_EV_FLUSH = 0x0010 , SCE_NET_ADHOC_EV_INVALID = 0x0100 , SCE_NET_ADHOC_EV_DELETE = 0x0200 , SCE_NET_ADHOC_EV_ALERT = 0x0400 ,
  SCE_NET_ADHOC_EV_DISCONNECT = 0x0800
}
 
enum  ScePspnetAdhocPtpState {
  SCE_NET_ADHOC_PTP_STATE_CLOSED = 0 , SCE_NET_ADHOC_PTP_STATE_LISTEN = 1 , SCE_NET_ADHOC_PTP_STATE_SYN_SENT = 2 , SCE_NET_ADHOC_PTP_STATE_SYN_RCVD = 3 ,
  SCE_NET_ADHOC_PTP_STATE_ESTABLISHED = 4
}
 
enum  ScePspnetAdhocFlags {
  SCE_NET_ADHOC_F_NONBLOCK = 0x0001 , SCE_NET_ADHOC_F_ALERTSEND = 0x0010 , SCE_NET_ADHOC_F_ALERTRECV = 0x0020 , SCE_NET_ADHOC_F_ALERTPOLL = 0x0040 ,
  SCE_NET_ADHOC_F_ALERTCONNECT = 0x0080 , SCE_NET_ADHOC_F_ALERTACCEPT = 0x0100 , SCE_NET_ADHOC_F_ALERTFLUSH = 0x0200
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0xC, SceNetAdhocPollSd)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceNetAdhocPdpStat)
 
 VITASDK_BUILD_ASSERT_EQ (0x24, SceNetAdhocPtpStat)
 
int sceNetAdhocInit (void)
 
int sceNetAdhocTerm (void)
 
int sceNetAdhocPollSocket (SceNetAdhocPollSd *sds, int nsds, unsigned int timeout, int flag)
 
int sceNetAdhocSetSocketAlert (int id, int flag)
 
int sceNetAdhocGetSocketAlert (int id, int *flag)
 
int sceNetAdhocPdpCreate (const SceNetEtherAddr *saddr, SceUShort16 sport, unsigned int bufsize, int flag)
 
int sceNetAdhocPdpSend (int id, const SceNetEtherAddr *daddr, SceUShort16 dport, const void *data, int len, unsigned int timeout, int flag)
 
int sceNetAdhocPdpRecv (int id, SceNetEtherAddr *saddr, SceUShort16 *sport, void *buf, int *len, unsigned int timeout, int flag)
 
int sceNetAdhocPdpDelete (int id, int flag)
 
int sceNetAdhocGetPdpStat (int *buflen, void *buf)
 
int sceNetAdhocPtpOpen (const SceNetEtherAddr *saddr, SceUShort16 sport, const SceNetEtherAddr *daddr, SceUShort16 dport, unsigned int bufsize, unsigned int rexmt_int, int rexmt_cnt, int flag)
 
int sceNetAdhocPtpConnect (int id, unsigned int timeout, int flag)
 
int sceNetAdhocPtpListen (const SceNetEtherAddr *saddr, SceUShort16 sport, unsigned int bufsize, unsigned int rexmt_int, int rexmt_cnt, int backlog, int flag)
 
int sceNetAdhocPtpAccept (int id, SceNetEtherAddr *addr, SceUShort16 *port, unsigned int timeout, int flag)
 
int sceNetAdhocPtpSend (int id, const void *data, int *len, unsigned int timeout, int flag)
 
int sceNetAdhocPtpRecv (int id, void *buf, int *len, unsigned int timeout, int flag)
 
int sceNetAdhocPtpFlush (int id, unsigned int timeout, int flag)
 
int sceNetAdhocPtpClose (int id, int flag)
 
int sceNetAdhocGetPtpStat (int *buflen, void *buf)
 

Variables

int SceNetAdhocPollSd::id
 
int SceNetAdhocPollSd::events
 
int SceNetAdhocPollSd::revents
 
struct _SceNetAdhocPdpStat * SceNetAdhocPdpStat::next
 
int SceNetAdhocPdpStat::id
 
SceNetEtherAddr SceNetAdhocPdpStat::laddr
 
SceUShort16 SceNetAdhocPdpStat::lport
 
unsigned int SceNetAdhocPdpStat::rcv_sb_cc
 
struct _SceNetAdhocPtpStat * SceNetAdhocPtpStat::next
 
int SceNetAdhocPtpStat::id
 
SceNetEtherAddr SceNetAdhocPtpStat::laddr
 
SceNetEtherAddr SceNetAdhocPtpStat::paddr
 
SceUShort16 SceNetAdhocPtpStat::lport
 
SceUShort16 SceNetAdhocPtpStat::pport
 
unsigned int SceNetAdhocPtpStat::snd_sb_cc
 
unsigned int SceNetAdhocPtpStat::rcv_sb_cc
 
int SceNetAdhocPtpStat::state
 

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

ScePspnetAdhoc_stub




Data Structure Documentation

◆ SceNetAdhocPollSd

struct SceNetAdhocPollSd
Data Fields
int id
int events
int revents

◆ SceNetAdhocPdpStat

struct SceNetAdhocPdpStat
Data Fields
struct _SceNetAdhocPdpStat * next
int id
SceNetEtherAddr laddr
SceUShort16 lport
unsigned int rcv_sb_cc

◆ SceNetAdhocPtpStat

struct SceNetAdhocPtpStat
Data Fields
struct _SceNetAdhocPtpStat * next
int id
SceNetEtherAddr laddr
SceNetEtherAddr paddr
SceUShort16 lport
SceUShort16 pport
unsigned int snd_sb_cc
unsigned int rcv_sb_cc
int state

Macro Definition Documentation

◆ SCE_NET_ADHOC_F_ALERTALL

#define SCE_NET_ADHOC_F_ALERTALL
Value:
)
@ SCE_NET_ADHOC_F_ALERTCONNECT
Definition pspnet_adhoc.h:105
@ SCE_NET_ADHOC_F_ALERTACCEPT
Definition pspnet_adhoc.h:106
@ SCE_NET_ADHOC_F_ALERTRECV
Definition pspnet_adhoc.h:103
@ SCE_NET_ADHOC_F_ALERTSEND
Definition pspnet_adhoc.h:102
@ SCE_NET_ADHOC_F_ALERTPOLL
Definition pspnet_adhoc.h:104
@ SCE_NET_ADHOC_F_ALERTFLUSH
Definition pspnet_adhoc.h:107

◆ SCE_NET_ADHOC_PDP_MFS

#define SCE_NET_ADHOC_PDP_MFS   1444

◆ SCE_NET_ADHOC_PDP_MTU

#define SCE_NET_ADHOC_PDP_MTU   65523

◆ SCE_NET_ADHOC_PTP_MSS

#define SCE_NET_ADHOC_PTP_MSS   1444

Enumeration Type Documentation

◆ ScePspnetAdhocErrorCode

Enumerator
SCE_ERROR_NET_ADHOC_INVALID_SOCKET_ID 
SCE_ERROR_NET_ADHOC_INVALID_ADDR 
SCE_ERROR_NET_ADHOC_INVALID_PORT 
SCE_ERROR_NET_ADHOC_INVALID_BUFLEN 
SCE_ERROR_NET_ADHOC_INVALID_DATALEN 
SCE_ERROR_NET_ADHOC_NOT_ENOUGH_SPACE 
SCE_ERROR_NET_ADHOC_SOCKET_DELETED 
SCE_ERROR_NET_ADHOC_SOCKET_ALERTED 
SCE_ERROR_NET_ADHOC_WOULD_BLOCK 
SCE_ERROR_NET_ADHOC_PORT_IN_USE 
SCE_ERROR_NET_ADHOC_NOT_CONNECTED 
SCE_ERROR_NET_ADHOC_DISCONNECTED 
SCE_ERROR_NET_ADHOC_NOT_OPENED 
SCE_ERROR_NET_ADHOC_NOT_LISTENED 
SCE_ERROR_NET_ADHOC_SOCKET_ID_NOT_AVAIL 
SCE_ERROR_NET_ADHOC_PORT_NOT_AVAIL 
SCE_ERROR_NET_ADHOC_INVALID_ARG 
SCE_ERROR_NET_ADHOC_NOT_INITIALIZED 
SCE_ERROR_NET_ADHOC_ALREADY_INITIALIZED 
SCE_ERROR_NET_ADHOC_BUSY 
SCE_ERROR_NET_ADHOC_TIMEOUT 
SCE_ERROR_NET_ADHOC_NO_ENTRY 
SCE_ERROR_NET_ADHOC_EXCEPTION_EVENT 
SCE_ERROR_NET_ADHOC_CONNECTION_REFUSED 
SCE_ERROR_NET_ADHOC_THREAD_ABORTED 
SCE_ERROR_NET_ADHOC_ALREADY_CREATED 
SCE_ERROR_NET_ADHOC_NOT_IN_GAMEMODE 
SCE_ERROR_NET_ADHOC_NOT_CREATED 
SCE_ERROR_NET_ADHOC_INVALID_ALIGNMENT 

◆ ScePspnetAdhocEvent

Enumerator
SCE_NET_ADHOC_EV_SEND 
SCE_NET_ADHOC_EV_RECV 
SCE_NET_ADHOC_EV_CONNECT 
SCE_NET_ADHOC_EV_ACCEPT 
SCE_NET_ADHOC_EV_FLUSH 
SCE_NET_ADHOC_EV_INVALID 
SCE_NET_ADHOC_EV_DELETE 
SCE_NET_ADHOC_EV_ALERT 
SCE_NET_ADHOC_EV_DISCONNECT 

◆ ScePspnetAdhocPtpState

Enumerator
SCE_NET_ADHOC_PTP_STATE_CLOSED 
SCE_NET_ADHOC_PTP_STATE_LISTEN 
SCE_NET_ADHOC_PTP_STATE_SYN_SENT 
SCE_NET_ADHOC_PTP_STATE_SYN_RCVD 
SCE_NET_ADHOC_PTP_STATE_ESTABLISHED 

◆ ScePspnetAdhocFlags

Enumerator
SCE_NET_ADHOC_F_NONBLOCK 
SCE_NET_ADHOC_F_ALERTSEND 
SCE_NET_ADHOC_F_ALERTRECV 
SCE_NET_ADHOC_F_ALERTPOLL 
SCE_NET_ADHOC_F_ALERTCONNECT 
SCE_NET_ADHOC_F_ALERTACCEPT 
SCE_NET_ADHOC_F_ALERTFLUSH 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/3]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceNetAdhocPollSd   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/3]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
SceNetAdhocPdpStat   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/3]

VITASDK_BUILD_ASSERT_EQ ( 0x24  ,
SceNetAdhocPtpStat   
)

◆ sceNetAdhocInit()

int sceNetAdhocInit ( void  )

◆ sceNetAdhocTerm()

int sceNetAdhocTerm ( void  )

◆ sceNetAdhocPollSocket()

int sceNetAdhocPollSocket ( SceNetAdhocPollSd sds,
int  nsds,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocSetSocketAlert()

int sceNetAdhocSetSocketAlert ( int  id,
int  flag 
)

◆ sceNetAdhocGetSocketAlert()

int sceNetAdhocGetSocketAlert ( int  id,
int *  flag 
)

◆ sceNetAdhocPdpCreate()

int sceNetAdhocPdpCreate ( const SceNetEtherAddr saddr,
SceUShort16  sport,
unsigned int  bufsize,
int  flag 
)

◆ sceNetAdhocPdpSend()

int sceNetAdhocPdpSend ( int  id,
const SceNetEtherAddr daddr,
SceUShort16  dport,
const void *  data,
int  len,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPdpRecv()

int sceNetAdhocPdpRecv ( int  id,
SceNetEtherAddr saddr,
SceUShort16 sport,
void *  buf,
int *  len,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPdpDelete()

int sceNetAdhocPdpDelete ( int  id,
int  flag 
)

◆ sceNetAdhocGetPdpStat()

int sceNetAdhocGetPdpStat ( int *  buflen,
void *  buf 
)

◆ sceNetAdhocPtpOpen()

int sceNetAdhocPtpOpen ( const SceNetEtherAddr saddr,
SceUShort16  sport,
const SceNetEtherAddr daddr,
SceUShort16  dport,
unsigned int  bufsize,
unsigned int  rexmt_int,
int  rexmt_cnt,
int  flag 
)

◆ sceNetAdhocPtpConnect()

int sceNetAdhocPtpConnect ( int  id,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPtpListen()

int sceNetAdhocPtpListen ( const SceNetEtherAddr saddr,
SceUShort16  sport,
unsigned int  bufsize,
unsigned int  rexmt_int,
int  rexmt_cnt,
int  backlog,
int  flag 
)

◆ sceNetAdhocPtpAccept()

int sceNetAdhocPtpAccept ( int  id,
SceNetEtherAddr addr,
SceUShort16 port,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPtpSend()

int sceNetAdhocPtpSend ( int  id,
const void *  data,
int *  len,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPtpRecv()

int sceNetAdhocPtpRecv ( int  id,
void *  buf,
int *  len,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPtpFlush()

int sceNetAdhocPtpFlush ( int  id,
unsigned int  timeout,
int  flag 
)

◆ sceNetAdhocPtpClose()

int sceNetAdhocPtpClose ( int  id,
int  flag 
)

◆ sceNetAdhocGetPtpStat()

int sceNetAdhocGetPtpStat ( int *  buflen,
void *  buf 
)

Variable Documentation

◆ id [1/3]

int SceNetAdhocPollSd::id

◆ events

int SceNetAdhocPollSd::events

◆ revents

int SceNetAdhocPollSd::revents

◆ next [1/2]

struct _SceNetAdhocPdpStat* SceNetAdhocPdpStat::next

◆ id [2/3]

int SceNetAdhocPdpStat::id

◆ laddr [1/2]

SceNetEtherAddr SceNetAdhocPdpStat::laddr

◆ lport [1/2]

SceUShort16 SceNetAdhocPdpStat::lport

◆ rcv_sb_cc [1/2]

unsigned int SceNetAdhocPdpStat::rcv_sb_cc

◆ next [2/2]

struct _SceNetAdhocPtpStat* SceNetAdhocPtpStat::next

◆ id [3/3]

int SceNetAdhocPtpStat::id

◆ laddr [2/2]

SceNetEtherAddr SceNetAdhocPtpStat::laddr

◆ paddr

SceNetEtherAddr SceNetAdhocPtpStat::paddr

◆ lport [2/2]

SceUShort16 SceNetAdhocPtpStat::lport

◆ pport

SceUShort16 SceNetAdhocPtpStat::pport

◆ snd_sb_cc

unsigned int SceNetAdhocPtpStat::snd_sb_cc

◆ rcv_sb_cc [2/2]

unsigned int SceNetAdhocPtpStat::rcv_sb_cc

◆ state

int SceNetAdhocPtpStat::state