Accelerated Computation Engine
|
#include <ace_logserver.h>
Classes | |
class | Thread |
Public Types | |
enum | Type { Log, Debug } |
Public Member Functions | |
void | wait () |
LogServer & | broadcast (Type type, int thread, const QByteArray &data) |
Static Public Member Functions | |
static void | initialize (int port) |
static LogServer * | log () |
static QString | host () |
This is a global singleton TCP logging server used to output logging messages to all connected logging clients. This is a very low level class and only outputs byte arrays. This class is thread safe, using an internal thread and runs all TCP operations exclusively inside its own thread. This class acts as a TCP server, relaying all byte arrays streamed to it. This also provides static functions for initializing the log server and then accessing its instance.
enum Ace::LogServer::Type |
Writes out the given message to all connected clients.
type | The message type being broadcast to all clients. |
thread | The thread ID where this message is coming from. This is only used for debugging messages. |
data | Any optional data that is appended to the message. |
|
static |
Returns the hostname of the machine this program is running on.
|
static |
Creates and initializes the global instance of the log server.
port | The port number the global log server listens for new connections. |
|
static |
Returns the global instance of the logging server or null if it was never initialized.
void LogServer::wait | ( | ) |
Blocks execution until it gets a signal from a connected logging client to start analytic execution.