43#ifndef DIAGNOSTICS_INTERNAL_H
44#define DIAGNOSTICS_INTERNAL_H
54 virtual void ServeContent(
int fd) = 0;
55 void ServeSubContent(
int fd,
NBString & remainder);
56 static void ServerRoot(
int fd,
const char *pUrl);
61 static void ServeBody(
int fd);
82 virtual void ServeContent(
int fd) { m_pF(fd); }
244 volatile const char *pString;
304bool SendDiagReport(
const char * pUrl,
const char *pUser = 0,
const char *pPass = 0);
Callback-based diagnostic item that calls a custom function to generate diagnostic content.
Definition diagnostics.h:80
DiagCallBack(const char *name, diagcallback *pFunc)
Constructor for callback-based diagnostic item.
Definition diagnostics.h:90
Base class for all diagnostic items.
Definition diagnostics.h:50
Monitor and report pointer values.
Definition diagnostics.h:270
DiagPtrMon(const char *name, void *p)
Constructor for monitoring pointer values.
Definition diagnostics.h:281
virtual void ServeContent(int fd)
Output the pointer value as a hexadecimal string.
Monitor and report string values.
Definition diagnostics.h:242
virtual void ServeContent(int fd)
Output the string value to the diagnostic stream.
DiagStrMon(const char *name, NBString &s)
Constructor for monitoring NBString object.
Definition diagnostics.h:262
DiagStrMon(const char *name, const char *pstr)
Constructor for monitoring C-style string.
Definition diagnostics.h:254
Monitor and report the value of numeric variables.
Definition diagnostics.h:97
virtual void ServeContent(int fd)
Pure virtual function to output diagnostic content.
DiagVarMon(const char *name, uint32_t &v)
Constructor for monitoring numeric variables.
Definition diagnostics.h:116
Lightweight alternative to C++ CString class.
Definition nbstring.h:118
Parsed Uniform Resource Identifier Class (URI)
Definition http_funcs.h:62
bool SendDiagReport(const char *pUrl, const char *pUser=0, const char *pPass=0)
Send the complete diagnostic report to an external URL via HTTP POST.
void diagcallback(int sock)
Callback function type for custom diagnostic reports.
Definition diagnostics.h:75
void InitPlatformDiag()
Initialize platform-specific diagnostics.