fishbowl/client/main.cc

25 lines
393 B
C++
Raw Normal View History

2026-05-27 16:03:38 +09:00
#include <fishbone/foundation.h>
int quit = 0;
#ifndef _WIN32
#include <signal.h>
static void cleanup(int sig){
quit = 1;
}
#endif
int main(){
2026-06-01 13:50:35 +09:00
fishbone::Client* client;
std::unordered_map<std::string, std::vector<std::string>> param;
client = new fishbone::Client(param);
2026-05-29 01:10:45 +09:00
2026-05-27 16:03:38 +09:00
#ifndef _WIN32
signal(SIGINT, cleanup);
signal(SIGTERM, cleanup);
#endif
2026-06-01 13:50:35 +09:00
while(!quit && client->step());
2026-05-27 16:03:38 +09:00
}