1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-09-20 02:28:19 +00:00
Laika/panel/include/pclient.h
CPunch fb71dfb3c3 Added panel!
- minor refactoring
- TODO: panel & cnc should really use unique keys. maybe add config file?
2022-02-14 00:22:36 -06:00

25 lines
626 B
C

#ifndef PCLIENT_H
#define PCLIENT_H
#include "laika.h"
#include "lpeer.h"
#include "lpolllist.h"
#include "pbot.h"
typedef struct sPanel_client {
uint8_t priv[crypto_kx_SECRETKEYBYTES], pub[crypto_kx_PUBLICKEYBYTES];
struct sLaika_pollList pList;
struct sLaika_peer *peer;
} tPanel_client;
tPanel_client *panelC_newClient();
void panelC_freeClient(tPanel_client *client);
void panelC_connectToCNC(tPanel_client *client, char *ip, char *port); /* can throw a LAIKA_ERROR */
bool panelC_poll(tPanel_client *client, int timeout);
void panelC_addBot(tPanel_bot *bot);
void panelC_rmvBot(tPanel_bot *bot);
#endif