Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

debug.h

Go to the documentation of this file.
00001 #ifndef __DEBUG_H
00002 #define __DEBUG_H
00003 
00004 /* debugging turned on via the gcc command line, do not hard code it here */
00005 
00006 /* types you can send to the debug function */
00007 /* set last argument to 1 to turn on, 0 to turn off the 
00008    debugging messages for that particular group */
00009 
00010 //
00011 // Link Layer Stuff
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 // Network Layer Stuff
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 // Transport Layer Stuff
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 // App Layer Stuff
00075 //
00076 
00078 #define DEBUG_WS __FILE__,__LINE__,1
00079 
00081 #define DEBUG_PROXY __FILE__,__LINE__,1
00082 
00083 
00084 //
00085 // Utilities
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 // Window Position
00101 #define DEBUG_WP __FILE__,__LINE__,0
00102 
00103 
00104 //
00105 // add more here as needed ... 
00106 //
00107 
00108 
00110 #define DEBUG_ERR __FILE__,__LINE__,1 
00111 
00113 #define DEBUG_INFO __FILE__,__LINE__,1
00114 
00115 
00116 /* 
00117         Use this for all debug messages.
00118         Example use:
00119         debug(ROUTING, "Current value: %s", value);
00120         You must always use one of the above tags as the first argument
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 

Generated at Thu Jul 11 13:31:50 2002 for Peekabooty by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001