The Network Kit Table of Contents | The Network Kit Index |
Derived from: (none)
Declared in: be/net/NetDebug.h
Library: libnetapi.so
Allocation: Constructor only
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.
|
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() enables debug output if enable is true, otherwise it disables debug output.
IsEnabled() reports the current state of debug output.
|
Prints the specified message to stderr, if debug output is currently enabled.
The Network Kit Table of Contents | The Network Kit Index |
Copyright © 2000 Be, Inc. All rights reserved..