-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdebugnet.h
More file actions
44 lines (36 loc) · 985 Bytes
/
debugnet.h
File metadata and controls
44 lines (36 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* debugnet library for PSP2
* Copyright (C) 2010,2015 Antonio Jose Ramos Marquez (aka bigboss) @psxdev on twitter
* Repository https://github.com/psxdev/debugnet
*/
#ifndef _DEBUGNET_H_
#define _DEBUGNET_H_
#define NET_INIT_SIZE 1*1024*1024
#define DBGNET_NONE 0
#define DBGNET_INFO 1
#define DBGNET_ERROR 2
#define DBGNET_DEBUG 3
typedef struct debugNetConfiguration
{
int debugnet_initialized;
int SocketFD;
int logLevel;
} debugNetConfiguration;
#ifdef __cplusplus
extern "C"
{
#endif
int debugNetInit(const char *serverIp, int port, int level);
int debugNetInitWithConf(debugNetConfiguration *conf);
debugNetConfiguration *debugNetGetConf();
int debugNetSetConf(debugNetConfiguration *conf);
void debugNetFinish();
void debugNetUDPSend(const char *text);
void debugNetUDPPrintf(const char *format, ...);
void debugNetPrintf(int level, const char* format, ...);
void debugNetSetLogLevel(int level);
int debugNetCreateConf();
#ifdef __cplusplus
}
#endif
#endif