23 #include "plugin_tool.h" 24 #include <netcomm/fawkes/client.h> 26 #include <core/threading/thread.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());
static void finalize()
Finalize (and free) the SignalManager instance, this does NOT implicitly delete the signal handlers...
Simple Fawkes network client.
Fawkes library namespace.
void disconnect()
Disconnect socket.
void connect()
Connect to remote.
Parse command line arguments.
static void init_main()
Initialize Thread wrapper instance for main thread.
Base class for exceptions in Fawkes.
static void destroy_main()
Destroy main thread wrapper instance.
static SignalHandler * register_handler(int signum, SignalHandler *handler)
Register a SignalHandler for a signal.
virtual const char * what_no_backtrace() const
Get primary string (does not implicitly print the back trace).