PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspnet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SceNetMallocStat
 

Typedefs

typedef struct SceNetMallocStat SceNetMallocStat
 

Functions

int sceNetInit (int poolsize, int calloutprio, int calloutstack, int netintrprio, int netintrstack)
 Initialise the networking library.
 
int sceNetTerm (void)
 Terminate the networking library.
 
int sceNetFreeThreadinfo (int thid)
 Free (delete) thread info/data.
 
int sceNetThreadAbort (int thid)
 Abort a thread.
 
void sceNetEtherStrton (char *name, unsigned char *mac)
 Convert string to a Mac address.
 
void sceNetEtherNtostr (unsigned char *mac, char *name)
 Convert Mac address to a string.
 
int sceNetGetLocalEtherAddr (unsigned char *mac)
 Retrieve the local Mac address.
 
int sceNetGetMallocStat (SceNetMallocStat *stat)
 Retrieve the networking library memory usage.
 

Typedef Documentation

◆ SceNetMallocStat

Function Documentation

◆ sceNetEtherNtostr()

void sceNetEtherNtostr ( unsigned char mac,
char name 
)

Convert Mac address to a string.

Parameters
mac- The Mac address to convert.
name- Pointer to a buffer to store the result.

◆ sceNetEtherStrton()

void sceNetEtherStrton ( char name,
unsigned char mac 
)

Convert string to a Mac address.

Parameters
name- The string to convert.
mac- Pointer to a buffer to store the result.

◆ sceNetFreeThreadinfo()

int sceNetFreeThreadinfo ( int  thid)

Free (delete) thread info/data.

Parameters
thid- The thread id.
Returns
0 on success, < 0 on error

◆ sceNetGetLocalEtherAddr()

int sceNetGetLocalEtherAddr ( unsigned char mac)

Retrieve the local Mac address.

Parameters
mac- Pointer to a buffer to store the result.
Returns
0 on success, < 0 on error

◆ sceNetGetMallocStat()

int sceNetGetMallocStat ( SceNetMallocStat stat)

Retrieve the networking library memory usage.

Parameters
stat- Pointer to a SceNetMallocStat type to store the result.
Returns
0 on success, < 0 on error

◆ sceNetInit()

int sceNetInit ( int  poolsize,
int  calloutprio,
int  calloutstack,
int  netintrprio,
int  netintrstack 
)

Initialise the networking library.

Parameters
poolsize- Memory pool size (appears to be for the whole of the networking library).
calloutprio- Priority of the SceNetCallout thread.
calloutstack- Stack size of the SceNetCallout thread (defaults to 4096 on non 1.5 firmware regardless of what value is passed).
netintrprio- Priority of the SceNetNetintr thread.
netintrstack- Stack size of the SceNetNetintr thread (defaults to 4096 on non 1.5 firmware regardless of what value is passed).
Returns
0 on success, < 0 on error

◆ sceNetTerm()

int sceNetTerm ( void  )

Terminate the networking library.

Returns
0 on success, < 0 on error

◆ sceNetThreadAbort()

int sceNetThreadAbort ( int  thid)

Abort a thread.

Parameters
thid- The thread id.
Returns
0 on success, < 0 on error