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:

SceNetAdhocMatching_stub



Functions

int sceNetAdhocMatchingInit (unsigned int pool_size, void *pool_ptr)
 
int sceNetAdhocMatchingTerm (void)
 
int sceNetAdhocMatchingStart (int id, int thread_priority, int thread_stack_size, int thread_cpu_affinity_mask, int hello_opt_len, void *hello_opt)
 
int sceNetAdhocMatchingCreate (SceNetAdhocMatchingMode mode, int max_members, SceUShort16 port, int rx_buffer_len, unsigned int hello_interval, unsigned int keep_alive_interval, int retry_count, unsigned int rexmt_interval, SceNetAdhocMatchingCallback handler_callback)
 
int sceNetAdhocMatchingStop (int id)
 
int sceNetAdhocMatchingDelete (int id)
 
int sceNetAdhocMatchingAbortSendData (int id, SceNetInAddr *addr)
 
int sceNetAdhocMatchingCancelTargetWithOpt (int id, SceNetInAddr *target, int opt_len, char *opt)
 
int sceNetAdhocMatchingCancelTarget (int id, SceNetInAddr *target)
 
int sceNetAdhocMatchingSetHelloOpt (int id, int opt_len, void *opt)
 
int sceNetAdhocMatchingGetHelloOpt (int id, unsigned int *opt_len, void *opt)
 
int sceNetAdhocMatchingGetMembers (int id, unsigned int *members_count, struct SceNetAdhocMatchingMember *members)
 
int sceNetAdhocMatchingSelectTarget (int id, SceNetInAddr *target, int opt_len, void *opt)
 
int sceNetAdhocMatchingSendData (int id, SceNetInAddr *addr, int data_len, void *data)
 

Typedefs

typedef void(* SceNetAdhocMatchingCallback) (int id, int type, SceNetInAddr *addr, SceSize opt_len, void *opt)
 

Data Structure Documentation

◆ SceNetAdhocMatchingMember

struct SceNetAdhocMatchingMember
Data Fields
SceNetInAddr addr

Typedef Documentation

◆ SceNetAdhocMatchingCallback

typedef void(* SceNetAdhocMatchingCallback) (int id, int type, SceNetInAddr *addr, SceSize opt_len, void *opt)

Enumeration Type Documentation

◆ SceNetAdhocMatchingErrorCode

Enumerator
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_MODE 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_PORT 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_MAXNUM 
SCE_NET_ADHOC_MATCHING_ERROR_RXBUF_TOO_SHORT 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_OPTLEN 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_ARG 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_ID 
SCE_NET_ADHOC_MATCHING_ERROR_ID_NOT_AVAIL 
SCE_NET_ADHOC_MATCHING_ERROR_NO_SPACE 
SCE_NET_ADHOC_MATCHING_ERROR_IS_RUNNING 
SCE_NET_ADHOC_MATCHING_ERROR_NOT_RUNNING 
SCE_NET_ADHOC_MATCHING_ERROR_UNKNOWN_TARGET 
SCE_NET_ADHOC_MATCHING_ERROR_TARGET_NOT_READY 
SCE_NET_ADHOC_MATCHING_ERROR_EXCEED_MAXNUM 
SCE_NET_ADHOC_MATCHING_ERROR_REQUEST_IN_PROGRESS 
SCE_NET_ADHOC_MATCHING_ERROR_ALREADY_ESTABLISHED 
SCE_NET_ADHOC_MATCHING_ERROR_BUSY 
SCE_NET_ADHOC_MATCHING_ERROR_ALREADY_INITIALIZED 
SCE_NET_ADHOC_MATCHING_ERROR_NOT_INITIALIZED 
SCE_NET_ADHOC_MATCHING_ERROR_PORT_IN_USE 
SCE_NET_ADHOC_MATCHING_ERROR_STACKSIZE_TOO_SHORT 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_DATALEN 
SCE_NET_ADHOC_MATCHING_ERROR_NOT_ESTABLISHED 
SCE_NET_ADHOC_MATCHING_ERROR_DATA_BUSY 
SCE_NET_ADHOC_MATCHING_ERROR_INVALID_ALIGNMENT 

◆ SceNetAdhocMatchingMode

Enumerator
SCE_NET_ADHOC_MATCHING_MODE_PARENT 
SCE_NET_ADHOC_MATCHING_MODE_CHILD 
SCE_NET_ADHOC_MATCHING_MODE_P2P 

Function Documentation

◆ sceNetAdhocMatchingInit()

int sceNetAdhocMatchingInit ( unsigned int  pool_size,
void *  pool_ptr 
)

◆ sceNetAdhocMatchingTerm()

int sceNetAdhocMatchingTerm ( void  )

◆ sceNetAdhocMatchingStart()

int sceNetAdhocMatchingStart ( int  id,
int  thread_priority,
int  thread_stack_size,
int  thread_cpu_affinity_mask,
int  hello_opt_len,
void *  hello_opt 
)

◆ sceNetAdhocMatchingCreate()

int sceNetAdhocMatchingCreate ( SceNetAdhocMatchingMode  mode,
int  max_members,
SceUShort16  port,
int  rx_buffer_len,
unsigned int  hello_interval,
unsigned int  keep_alive_interval,
int  retry_count,
unsigned int  rexmt_interval,
SceNetAdhocMatchingCallback  handler_callback 
)

◆ sceNetAdhocMatchingStop()

int sceNetAdhocMatchingStop ( int  id)

◆ sceNetAdhocMatchingDelete()

int sceNetAdhocMatchingDelete ( int  id)

◆ sceNetAdhocMatchingAbortSendData()

int sceNetAdhocMatchingAbortSendData ( int  id,
SceNetInAddr addr 
)

◆ sceNetAdhocMatchingCancelTargetWithOpt()

int sceNetAdhocMatchingCancelTargetWithOpt ( int  id,
SceNetInAddr target,
int  opt_len,
char *  opt 
)

◆ sceNetAdhocMatchingCancelTarget()

int sceNetAdhocMatchingCancelTarget ( int  id,
SceNetInAddr target 
)

◆ sceNetAdhocMatchingSetHelloOpt()

int sceNetAdhocMatchingSetHelloOpt ( int  id,
int  opt_len,
void *  opt 
)

◆ sceNetAdhocMatchingGetHelloOpt()

int sceNetAdhocMatchingGetHelloOpt ( int  id,
unsigned int *  opt_len,
void *  opt 
)

◆ sceNetAdhocMatchingGetMembers()

int sceNetAdhocMatchingGetMembers ( int  id,
unsigned int *  members_count,
struct SceNetAdhocMatchingMember members 
)

◆ sceNetAdhocMatchingSelectTarget()

int sceNetAdhocMatchingSelectTarget ( int  id,
SceNetInAddr target,
int  opt_len,
void *  opt 
)

◆ sceNetAdhocMatchingSendData()

int sceNetAdhocMatchingSendData ( int  id,
SceNetInAddr addr,
int  data_len,
void *  data 
)