1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-11-29 22:20:06 +00:00

lsocket.[ch] & lpeer.c: migrated to new vector API

This commit is contained in:
2022-09-01 19:05:56 -05:00
parent af09e74263
commit 13398dbdf6
4 changed files with 50 additions and 53 deletions

View File

@@ -3,8 +3,8 @@
#include "hashmap.h"
#include "laika.h"
#include "lsocket.h"
#include "lmem.h"
#include "lsocket.h"
#include <stdbool.h>
@@ -21,7 +21,8 @@ struct sLaika_pollEvent
struct sLaika_pollList
{
struct hashmap *sockets;
laikaM_newVector(struct sLaika_socket *, outQueue); /* holds sockets which have data needed to be sent */
/* holds sockets which have data needed to be sent */
laikaM_newVector(struct sLaika_socket *, outQueue);
laikaM_newVector(struct sLaika_pollEvent, revents);
#ifdef LAIKA_USE_EPOLL
/* epoll */