1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-14 01:40:05 +00:00
Laika/cnc/src/main.c

22 lines
474 B
C
Raw Normal View History

#include <stdio.h>
#include "ltask.h"
#include "cnc.h"
struct sLaika_taskService tService;
int main(int argv, char **argc) {
struct sLaika_cnc *cnc = laikaC_newCNC(atoi(LAIKA_CNC_PORT));
laikaT_initTaskService(&tService);
while (true) {
laikaC_pollPeers(cnc, laikaT_timeTillTask(&tService));
laikaT_pollTasks(&tService);
}
2022-02-17 23:38:34 +00:00
laikaT_cleanTaskService(&tService);
laikaC_freeCNC(cnc);
LAIKA_DEBUG("cnc killed\n");
return 0;
}