00001 #ifndef __DEBUG_H
00002 #define __DEBUG_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00015 #define DEBUG_CONN __FILE__,__LINE__,0
00016
00018 #define DEBUG_NODE __FILE__,__LINE__,0
00019
00021 #define DEBUG_LLI __FILE__,__LINE__,1
00022
00024 #define DEBUG_PACKET __FILE__,__LINE__,0
00025
00027 #define DEBUG_SSL __FILE__,__LINE__,0
00028
00030 #define DEBUG_INTF __FILE__,__LINE__,0
00031
00032
00033
00034
00035
00036
00038 #define DEBUG_CATCHER __FILE__,__LINE__,0
00039
00041 #define DEBUG_PPQ __FILE__,__LINE__,0
00042
00044 #define DEBUG_NL __FILE__,__LINE__,1
00045
00047 #define DEBUG_VCT __FILE__,__LINE__,0
00048
00049
00050
00051
00052
00053
00055 #define DEBUG_RECVW __FILE__,__LINE__,0
00056
00058 #define DEBUG_SENDW __FILE__,__LINE__,0
00059
00061 #define DEBUG_SAR __FILE__,__LINE__,0
00062
00064 #define DEBUG_SRV __FILE__,__LINE__,1
00065
00067 #define DEBUG_SE __FILE__,__LINE__,0
00068
00070 #define DEBUG_TL __FILE__,__LINE__,0
00071
00072
00073
00074
00075
00076
00078 #define DEBUG_WS __FILE__,__LINE__,1
00079
00081 #define DEBUG_PROXY __FILE__,__LINE__,1
00082
00083
00084
00085
00086
00087
00089 #define DEBUG_CONFIG __FILE__,__LINE__,0
00090
00092 #define DEBUG_TIMER __FILE__,__LINE__,0
00093
00095 #define DEBUG_SF __FILE__,__LINE__,0
00096
00098 #define DEBUG_CMD __FILE__,__LINE__,0
00099
00100
00101 #define DEBUG_WP __FILE__,__LINE__,0
00102
00103
00104
00105
00106
00107
00108
00110 #define DEBUG_ERR __FILE__,__LINE__,1
00111
00113 #define DEBUG_INFO __FILE__,__LINE__,1
00114
00115
00116
00117
00118
00119
00120
00121
00122 void debug(char *file, int line, int enabled, char *msg, ...);
00123
00124 #endif
00125
00126 void debugSetFile(const char* fileName);
00127 void debugSetOutput(std::ostream* theOutput);
00128 void MEMCHECK(void* checkPtr);
00129