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

17 lines
318 B
C
Raw Normal View History

#include <stdio.h>
#include "cnc.h"
int main(int argv, char **argc) {
struct sLaika_cnc *cnc = laikaC_newCNC(13337);
while (true) {
if (!laikaC_pollPeers(cnc, 1000)) {
LAIKA_DEBUG("no events!\n");
}
}
laikaC_freeCNC(cnc);
LAIKA_DEBUG("cnc killed\n");
return 0;
}