1
0
mirror of https://github.com/CPunch/Laika.git synced 2026-02-08 09:10:03 +00:00

Protected handler calls in bot.c

- Added support for LAIKAPKT_HANDSHAKE_RES
This commit is contained in:
2022-01-25 11:58:36 -06:00
parent 1bccc78117
commit 04f02b4371
8 changed files with 40 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set(CNC_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
project(LaikaCNC VERSION 1.0)
project(LaikaCNC VERSION ${LAIKA_VERSION_MAJOR}.${LAIKA_VERSION_MINOR})
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

View File

@@ -7,10 +7,11 @@ int main(int argv, char **argc) {
while (true) {
if (!laikaC_pollPeers(cnc, 1000)) {
printf("no events!\n");
LAIKA_DEBUG("no events!\n");
}
}
printf("cnc killed\n");
laikaC_freeCNC(cnc);
LAIKA_DEBUG("cnc killed\n");
return 0;
}