1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-08 17:00:11 +00:00

started cnc.[ch], lpeer.c no longer catches errors, instead cnc.c handles error events

This commit is contained in:
2022-01-24 10:34:30 -06:00
parent 48eebc1951
commit c0aa8d2724
4 changed files with 108 additions and 12 deletions

View File

@@ -5,9 +5,17 @@
#include "lpacket.h"
#include "lsocket.h"
#include "lpolllist.h"
#include "lpeer.h"
struct {
struct sLaika_cnc {
struct sLaika_socket sock;
} sLaika_cnc;
struct sLaika_pollList pList;
};
struct sLaika_cnc *laikaC_newCNC(uint16_t port);
void laikaC_freeCNC(struct sLaika_cnc *cnc);
void laikaC_killPeer(struct sLaika_cnc *cnc, struct sLaika_peer *peer);
bool laikaC_pollPeers(struct sLaika_cnc *cnc, int timeout);
#endif