|
Derived from: (none)
Declared in: be/net/NetDebug.h
Library: libnetapi.so
Allocation: Constructor only
Summary: more...
BNetDebug provides a few functions that let you turn on and off debug output, and dump raw data to stderr in a clean format.
All the member functions are static; instead of creating a BNetDebug object, call them like this:
BNetDebug::Print("Starting server...");
Debug output is off by default; call BNetDebug::Enable() to enable it.
Dump() |
static void Dump(const char *data, size_t size, const char *title) const Dumps size bytes of raw data to stderr. The dump is prefaced by the given title. The text is only output if debug output is currently enabled.
Enable() , IsEnabled() |
static void Enable(bool enable) static bool IsEnabled(void) Enable() enables debug output if enable is true, otherwise it disables debug output.
IsEnabled() reports the current state of debug output.
Print() |
static void Print(const char *message) Prints the specified message to stderr, if debug output is currently enabled.
|
Copyright © 2000 Be, Inc. All rights reserved..