mirror of
https://github.com/CPunch/Laika.git
synced 2025-12-18 13:10:59 +00:00
added docs to bot.c
This commit is contained in:
@@ -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"));
|
LAIKA_DEBUG("handshake accepted by cnc! got endian flag : %s\n", (endianness ? "TRUE" : "FALSE"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* =============================================[[ Packet Tables ]]============================================== */
|
||||||
|
|
||||||
struct sLaika_peerPacketInfo laikaB_pktTbl[LAIKAPKT_MAXNONE] = {
|
struct sLaika_peerPacketInfo laikaB_pktTbl[LAIKAPKT_MAXNONE] = {
|
||||||
LAIKA_CREATE_PACKET_INFO(LAIKAPKT_HANDSHAKE_RES,
|
LAIKA_CREATE_PACKET_INFO(LAIKAPKT_HANDSHAKE_RES,
|
||||||
laikaB_handleHandshakeResponse,
|
laikaB_handleHandshakeResponse,
|
||||||
@@ -31,6 +33,8 @@ struct sLaika_peerPacketInfo laikaB_pktTbl[LAIKAPKT_MAXNONE] = {
|
|||||||
true),
|
true),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* ==================================================[[ Bot ]]=================================================== */
|
||||||
|
|
||||||
struct sLaika_bot *laikaB_newBot(void) {
|
struct sLaika_bot *laikaB_newBot(void) {
|
||||||
struct sLaika_bot *bot = laikaM_malloc(sizeof(struct sLaika_bot));
|
struct sLaika_bot *bot = laikaM_malloc(sizeof(struct sLaika_bot));
|
||||||
struct hostent *host;
|
struct hostent *host;
|
||||||
|
|||||||
Reference in New Issue
Block a user