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:

ScePspnetAdhoc_stub



Functions

 VITASDK_BUILD_ASSERT_EX (SceNetAdhocPollSd, 0xC==sizeof(struct SceNetAdhocPollSd))
 
 VITASDK_BUILD_ASSERT_EX (SceNetAdhocPdpStat, 0x14==sizeof(struct SceNetAdhocPdpStat))
 
int sceNetAdhocInit (void)
 
int sceNetAdhocTerm (void)
 
int sceNetAdhocPollSocket (struct SceNetAdhocPollSd *sds, int nsds, unsigned int timeout, int flag)
 
int sceNetAdhocSetSocketAlert (int id, int flag)
 
int sceNetAdhocGetSocketAlert (int id, int *flag)
 
int sceNetAdhocPdpCreate (const struct SceNetEtherAddr *saddr, SceUShort16 sport, unsigned int bufsize, int flag)
 
int sceNetAdhocPdpSend (int id, const struct SceNetEtherAddr *daddr, SceUShort16 dport, const void *data, int len, unsigned int timeout, int flag)
 
int sceNetAdhocPdpRecv (int id, struct 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 struct SceNetEtherAddr *saddr, SceUShort16 sport, const struct 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 struct SceNetEtherAddr *saddr, SceUShort16 sport, unsigned int bufsize, unsigned int rexmt_int, int rexmt_cnt, int backlog, int flag)
 
int sceNetAdhocPtpAccept (int id, struct 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)
 

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
 

Data Structure Documentation

◆ SceNetAdhocPollSd

struct SceNetAdhocPollSd
Data Fields
int id
int events
int revents

◆ SceNetAdhocPdpStat

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

◆ SceNetAdhocPtpStat

struct SceNetAdhocPtpStat
Data Fields
struct SceNetAdhocPtpStat * next
int id
struct SceNetEtherAddr laddr
struct 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:102
@ SCE_NET_ADHOC_F_ALERTACCEPT
Definition: pspnet_adhoc.h:103
@ SCE_NET_ADHOC_F_ALERTRECV
Definition: pspnet_adhoc.h:100
@ SCE_NET_ADHOC_F_ALERTSEND
Definition: pspnet_adhoc.h:99
@ SCE_NET_ADHOC_F_ALERTPOLL
Definition: pspnet_adhoc.h:101
@ SCE_NET_ADHOC_F_ALERTFLUSH
Definition: pspnet_adhoc.h:104

◆ 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_EX() [1/2]

VITASDK_BUILD_ASSERT_EX ( SceNetAdhocPollSd  ,
0xC  = =sizeof(struct SceNetAdhocPollSd) 
)

◆ VITASDK_BUILD_ASSERT_EX() [2/2]

VITASDK_BUILD_ASSERT_EX ( SceNetAdhocPdpStat  ,
0x14  = =sizeof(struct SceNetAdhocPdpStat) 
)

◆ sceNetAdhocInit()

int sceNetAdhocInit ( void  )

◆ sceNetAdhocTerm()

int sceNetAdhocTerm ( void  )

◆ sceNetAdhocPollSocket()

int sceNetAdhocPollSocket ( struct 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 struct SceNetEtherAddr saddr,
SceUShort16  sport,
unsigned int  bufsize,
int  flag 
)

◆ sceNetAdhocPdpSend()

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

◆ sceNetAdhocPdpRecv()

int sceNetAdhocPdpRecv ( int  id,
struct 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 struct SceNetEtherAddr saddr,
SceUShort16  sport,
const struct 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 struct SceNetEtherAddr saddr,
SceUShort16  sport,
unsigned int  bufsize,
unsigned int  rexmt_int,
int  rexmt_cnt,
int  backlog,
int  flag 
)

◆ sceNetAdhocPtpAccept()

int sceNetAdhocPtpAccept ( int  id,
struct 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 
)