pspsdk-1.0+beta2
pspnet.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
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  * $Id: pspnet.h 2439 2008-10-23 18:58:06Z iwn $
14  */
15 
16 #ifndef PSPNET_H
17 #define PSPNET_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 typedef struct SceNetMallocStat
24 {
25  int pool;
26  int maximum;
27  int free;
28 
30 
42 int sceNetInit(int poolsize, int calloutprio, int calloutstack, int netintrprio, int netintrstack);
43 
49 int sceNetTerm(void);
50 
58 int sceNetFreeThreadinfo(int thid);
59 
67 int sceNetThreadAbort(int thid);
68 
75 void sceNetEtherStrton(char *name, unsigned char *mac);
76 
83 void sceNetEtherNtostr(unsigned char *mac, char *name);
84 
92 int sceNetGetLocalEtherAddr(unsigned char *mac);
93 
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif /* PSPNET_H */