1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-09-26 03:40:05 +00:00

Added LAIKAPKT_HANDSHAKE_REQ support to cnc.c

- minor refactoring
- fixed CMakeLists.txt for cnc & bot
This commit is contained in:
2022-01-25 12:13:04 -06:00
parent 04f02b4371
commit 2a0e34dd5a
6 changed files with 46 additions and 19 deletions

View File

@@ -71,14 +71,7 @@ struct sLaika_socket {
#define laikaS_isAlive(arg) (arg->sock != INVALID_SOCKET)
inline bool laikaS_isBigEndian(void) {
union {
uint32_t i;
uint8_t c[4];
} _indxint = {0xDEADB33F};
return _indxint.c[0] == 0xDE;
}
bool laikaS_isBigEndian(void);
void laikaS_init(void);
void laikaS_cleanUp(void);