2022-01-25 03:46:29 +00:00
|
|
|
#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)) {
|
|
|
|
printf("no events!\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("cnc killed\n");
|
|
|
|
return 0;
|
|
|
|
}
|