diff --git a/bot/src/bot.c b/bot/src/bot.c index 42fec75..1728069 100644 --- a/bot/src/bot.c +++ b/bot/src/bot.c @@ -12,6 +12,8 @@ void laikaB_handleHandshakeResponse(struct sLaika_peer *peer, LAIKAPKT_SIZE sz, LAIKA_DEBUG("handshake accepted by cnc! got endian flag : %s\n", (endianness ? "TRUE" : "FALSE")); } +/* =============================================[[ Packet Tables ]]============================================== */ + struct sLaika_peerPacketInfo laikaB_pktTbl[LAIKAPKT_MAXNONE] = { LAIKA_CREATE_PACKET_INFO(LAIKAPKT_HANDSHAKE_RES, laikaB_handleHandshakeResponse, @@ -31,6 +33,8 @@ struct sLaika_peerPacketInfo laikaB_pktTbl[LAIKAPKT_MAXNONE] = { true), }; +/* ==================================================[[ Bot ]]=================================================== */ + struct sLaika_bot *laikaB_newBot(void) { struct sLaika_bot *bot = laikaM_malloc(sizeof(struct sLaika_bot)); struct hostent *host;