8 #define KRONKNET_POOL_H
11 #include "../../platform/poller.h"
48int knPool_registerFd(knPool *pool, knSocket fd, knConnection *conn, uint32_t events);
63int knPool_modifyFd(knPool *pool, knSocket fd, knConnection *conn, uint32_t events);
76int knPool_unregister(knPool *pool, knSocket fd);
89int knPool_unregisterAtIndex(knPool *pool,
size_t index);
101int knPool_init(knPool *pool);
113void knPool_clear(knPool *pool);
Definition connection.h:27
knConnection ** conns
The connections.
Definition pool.h:29
knPoller * poller
The poller of the sockets.
Definition pool.h:28
size_t size
The capacity of the pool.
Definition pool.h:30
size_t count
The number of fds in the pool.
Definition pool.h:31