PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspnet.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspnet.h - PSP networking libraries.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@0xd6.org>
9 * Copyright (c) 2008 David Perry <tias_dp@hotmail.com>
10 *
11 * Portions based on PspPet's wifi_03 sample code.
12 *
13 */
14
15#ifndef PSPNET_H
16#define PSPNET_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef struct SceNetMallocStat
23{
24 int pool;
26 int free;
27
29
42
48int sceNetTerm(void);
49
58
67
74void sceNetEtherStrton(char *name, unsigned char *mac);
75
82void sceNetEtherNtostr(unsigned char *mac, char *name);
83
91int sceNetGetLocalEtherAddr(unsigned char *mac);
92
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* PSPNET_H */
int sceNetGetLocalEtherAddr(unsigned char *mac)
Retrieve the local Mac address.
int sceNetTerm(void)
Terminate the networking library.
int sceNetInit(int poolsize, int calloutprio, int calloutstack, int netintrprio, int netintrstack)
Initialise the networking library.
int sceNetFreeThreadinfo(int thid)
Free (delete) thread info/data.
void sceNetEtherNtostr(unsigned char *mac, char *name)
Convert Mac address to a string.
void sceNetEtherStrton(char *name, unsigned char *mac)
Convert string to a Mac address.
int sceNetThreadAbort(int thid)
Abort a thread.
int sceNetGetMallocStat(SceNetMallocStat *stat)
Retrieve the networking library memory usage.
char * name
Definition pspsysmem_kernel.h:4
float x
Definition psptypes.h:0
Definition pspnet.h:23
int maximum
Definition pspnet.h:25
int pool
Definition pspnet.h:24
int free
Definition pspnet.h:26