25 lines
393 B
C++
25 lines
393 B
C++
#include <fishbone/foundation.h>
|
|
|
|
int quit = 0;
|
|
|
|
#ifndef _WIN32
|
|
#include <signal.h>
|
|
|
|
static void cleanup(int sig){
|
|
quit = 1;
|
|
}
|
|
#endif
|
|
|
|
int main(){
|
|
fishbone::Client* client;
|
|
std::unordered_map<std::string, std::vector<std::string>> param;
|
|
|
|
client = new fishbone::Client(param);
|
|
|
|
#ifndef _WIN32
|
|
signal(SIGINT, cleanup);
|
|
signal(SIGTERM, cleanup);
|
|
#endif
|
|
|
|
while(!quit && client->step());
|
|
}
|