mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 12:40:04 +00:00
added docs to bot.c
This commit is contained in:
parent
0c2d4968d9
commit
12f0e47ab0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user