23 #include "plugin_tool.h"
25 #include <core/threading/thread.h>
26 #include <netcomm/fawkes/client.h>
27 #include <utils/system/argparser.h>
28 #include <utils/system/signal.h>
37 main(
int argc,
char **argv)
41 if (argp.has_arg(
"h")) {
48 std::string host =
"localhost";
49 unsigned short int port = 1910;
50 if (argp.has_arg(
"r")) {
51 argp.parse_hostport(
"r", host, port);
58 printf(
"Could not connect to host: %s (%s)\n", host.c_str(), e.
what_no_backtrace());
Parse command line arguments.
Base class for exceptions in Fawkes.
virtual const char * what_no_backtrace() const
Get primary string (does not implicitly print the back trace).
Simple Fawkes network client.
void connect()
Connect to remote.
void disconnect()
Disconnect socket.
static void finalize()
Finalize (and free) the SignalManager instance, this does NOT implicitly delete the signal handlers,...
static SignalHandler * register_handler(int signum, SignalHandler *handler)
Register a SignalHandler for a signal.
static void destroy_main()
Destroy main thread wrapper instance.
static void init_main()
Initialize Thread wrapper instance for main thread.
Fawkes library namespace.